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#55623: 29.0.50; Mention that (face-foreground 'default) can return "unspecified-fg" Date: Wed, 25 May 2022 20:07:24 +0300 Message-ID: <83tu9dpmlv.fsf@gnu.org> References: <87ilpub287.fsf@gmail.com> <87o7zmjd2f.fsf@yahoo.com> <87czg2aw0q.fsf@gmail.com> <83pmk14uo4.fsf@gnu.org> <878rqpbqxm.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, adam@alphapapa.net, 55623@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 25 19:08:40 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 1ntuUy-0002Iq-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 19:08:40 +0200 Original-Received: from localhost ([::1]:44566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntuUw-0003Mi-Uj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 May 2022 13:08:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntuUN-0003LD-Mr for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntuUM-0006l3-BH for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntuUM-0005Ft-3K for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 13:08: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: Wed, 25 May 2022 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55623 X-GNU-PR-Package: emacs Original-Received: via spool by 55623-submit@debbugs.gnu.org id=B55623.165349847420184 (code B ref 55623); Wed, 25 May 2022 17:08:02 +0000 Original-Received: (at 55623) by debbugs.gnu.org; 25 May 2022 17:07:54 +0000 Original-Received: from localhost ([127.0.0.1]:56344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntuU4-0005FJ-Oo for submit@debbugs.gnu.org; Wed, 25 May 2022 13:07:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntuU0-0005F2-Jm for 55623@debbugs.gnu.org; Wed, 25 May 2022 13:07:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntuTu-0006iw-AR; Wed, 25 May 2022 13:07:35 -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=Ig+aiFluPFf78oE1L1+AXkiU/XGz+n24kAx2q47ZbRQ=; b=PBVp35C9zxZ+ 3yu7Q3KQcr/Q5fgAf4dL2q8LuROox7SKLVXRCzwdvxze3KnvGBFNZX6jz5k5crCgMbh1Gx5tMYmlT 8POWe5RXcO038NpCXqMC0ipuL0sGrcutsTilDG5ZOzy/JX+4x1fT77h7YXq6xXTyFl6709uPLN3/K FvVRbxmHKCTJGrUd0JX7Ja5yIV7k3C+b9LKR73mQNQ043ZUPCR2tHlfWnI1VoVan3IBGvire/LV9r aS/M3tEkKm9WO4SeYp6k/LMsZUWP69RK00/ZeyFAhcxqLld6t8IHa7bbNoguGBW6LD5JaU29vetr5 7e72KMkGMuA+AgnLzzry/w==; Original-Received: from [87.69.77.57] (port=2904 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 1ntuTt-0002CZ-Pv; Wed, 25 May 2022 13:07:34 -0400 In-Reply-To: <878rqpbqxm.fsf@gmail.com> (message from Visuwesh on Wed, 25 May 2022 20:27:41 +0530) 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:233070 Archived-At: > From: Visuwesh > Cc: luangruo@yahoo.com, 55623@debbugs.gnu.org, adam@alphapapa.net > Date: Wed, 25 May 2022 20:27:41 +0530 > > > They aren't documented on purpose: documenting them would be messy and > > at best will confuse anyone who isn't familiar with the internals of > > color support on TTY frames. They are in effect internal > > implementation details which unfortunately leak outside of the > > internals. > > > > I agree but I think anyone who is fairly familiar with terminal > emulators can understand that you cannot find the terminal emulator's > colourscheme (for a lack of a better word) in a terminal-agnostic way. > Thus, I believe there won't be too much confusion if we added such a > text. Which "such text" did you have in mind? The problem here is to come up with a useful text, which explains something without raising a lot more questions. > > What would you like to be documented about these special values, and > > why? > > I would like it if some words along the lines of... > > The 'default' face is always fully specified except in special cases > of TTY frames where :foreground and :background attributes may be > the strings "unspecified-fg" and "unspecified-bg" respectively. Without explaining the reason for these strange "color names", how can this be useful to anyone? > As for the why: In the bug report I alluded to in the OP, ement.el > relied on the completeness of the default-face specification to get the > colour of the face which is then used to calculate a different colour > (similar to the rainbow coloured nicknames you often see in irc > clients). This special case of the TTY frame would be handled correctly > if it was spelt out somewhere. (It isn't now since the value returned is > a surprise.) In such rare cases, it is much easier to explain the issue to a person who needs to deal with it (or thinks he/she needs to) than come up with a description useful enough to be in the manual. They are just "special color names", that's all.