From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33398: 26.1, netbsd-8; Hi Lock Faces, Hi Green B, default setting suggestion Date: Sun, 25 Nov 2018 22:25:25 +0200 Organization: LINKOV.NET Message-ID: <87k1l0c3be.fsf@mail.linkov.net> References: <9B715204-BE6D-4F02-B484-1EA9EDACE0EB@scratch.space> <87wope15gh.fsf@mail.linkov.net> <4D07BB6C-98A9-4EC2-BB37-097D5D753E53@scratch.space> <87wopbzeuy.fsf@mail.linkov.net> <87d0r04tmg.fsf@mail.linkov.net> <87sgzv747k.fsf@mail.linkov.net> <740AF1DA-7EDB-4310-8C6E-F7944D714513@scratch.space> <87sgzuca5o.fsf@mail.linkov.net> <87a7m0hi5t.fsf@mail.linkov.net> <837eh4gpjd.fsf@gnu.org> <87a7lyi29o.fsf@mail.linkov.net> <837eh1jeak.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543180256 16095 195.159.176.226 (25 Nov 2018 21:10:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 21:10:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: van@scratch.space, 33398@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 22:10:52 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gR1g3-00045b-CJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 22:10:51 +0100 Original-Received: from localhost ([::1]:33082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gR1i9-0003ig-QQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 16:13:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gR1gJ-00026Y-9I for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gR1gF-0008RR-8F for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gR1gF-0008RJ-4y for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gR1gE-0008TL-TT for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Nov 2018 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33398-submit@debbugs.gnu.org id=B33398.154318020532439 (code B ref 33398); Sun, 25 Nov 2018 21:11:02 +0000 Original-Received: (at 33398) by debbugs.gnu.org; 25 Nov 2018 21:10:05 +0000 Original-Received: from localhost ([127.0.0.1]:47653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gR1fJ-0008R7-0E for submit@debbugs.gnu.org; Sun, 25 Nov 2018 16:10:05 -0500 Original-Received: from eastern.maple.relay.mailchannels.net ([23.83.214.55]:35769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gR1fG-0008QT-LF for 33398@debbugs.gnu.org; Sun, 25 Nov 2018 16:10:03 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 57003124B4F; Sun, 25 Nov 2018 21:10:01 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (unknown [100.96.33.121]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 09B55124B88; Sun, 25 Nov 2018 21:10:01 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 25 Nov 2018 21:10:01 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Supply-Chemical: 16397dc074a669b4_1543180201150_2530309460 X-MC-Loop-Signature: 1543180201150:562907037 X-MC-Ingress-Time: 1543180201149 Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id C823481055; Sun, 25 Nov 2018 13:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=9TK2dC bzMTygVbLIJzBcmcsdVew=; b=VWwJeJLsTA0u8gotzMLiu3Z75b2mXzCNG+kqZ5 Ry1H4mXEDbENlX8HqIwi9AeedY8kKcmH6NSOLghwpxTHZjm5q0VWCg2W07oocejY hkexJwKBQ+jLUYeEslo8UpTSztmiy2O3Dy+LBQS7YB8O7CV9XD3pnoRmqH1Yrjhv yIkk4= Original-Received: from mail.jurta.org (m91-129-107-242.cust.tele2.ee [91.129.107.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTPSA id 1A0F78104F; Sun, 25 Nov 2018 13:09:57 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <837eh1jeak.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Nov 2018 18:46:27 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudduhedgudeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegvddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152769 Archived-At: >> >> (defface hi-pink >> >> - '((((background dark)) (:background "pink" :foreground "black")) >> >> - (t (:background "pink"))) >> >> + '((((min-colors 88) (background dark)) >> >> + (:background "pink" :foreground "black")) >> >> + (((background dark)) (:background "red" :foreground "black")) >> >> + (((min-colors 88)) (:background "pink")) >> >> + (t (:background "red"))) >> >> "Face for hi-lock mode." >> >> :group 'hi-lock-faces) >> > >> > Thanks for working on this, but unfortunately changing the default >> > colors for Emacs faces is not that easy (which is why we do that onl= y >> > very rarely). >>=20 >> I understand that face changing is very sensitive area, so I don't ins= ist >> on these changes if the result is worse. What I was trying to do is t= o >> add 2 more default colors: the current 4 is too small number of the de= fault >> background colors, so adding 2 colors will at least cover all availabl= e >> 6 non-black-white colors on a 8-color TTY. > > Then I don't understand why you also changed the faces we had > already. Leaving them alone will lower the risk that someone will > become annoyed by the changes. The problem is that the condition '(t (:background "pink"))' is automatically translated to "magenta" on a 8-color TTY. And in the 'hi-blue' face '(t (:background "light blue"))' is translated to "cyan". So to add a new face with a "blue" background on a 8-color TTY with the condition '(t (:background "blue"))' we have no suitable name for a new face, become the most suitable name 'hi-blue' is already taken by the existing face that is displayed as "cyan". The same problem is with 'hi-pink' that is currently translated to "magenta", not to "red" on a 8-color TTY. >> emacs -Q -nw --color=3D8 -f list-colors-display >>=20 >> displays a list of 8 colors, good. But running >>=20 >> emacs -Q -nw --color=3D16 -f list-colors-display >>=20 >> displays a list of 256 colors, the same number of colors properly disp= layed by >>=20 >> emacs -Q -nw --color=3D256 -f list-colors-display >>=20 >> Is this a bug in Emacs? > > Not a bug, a subtlety: the only numeric argument you can reliably > submit to --color=3D is 8, because it alone has a standard set of > termcap/terminfo commands to set and reset colors. Maybe we should > amend the documentation so that people don't expect other numbers to > work. Currently it's documented in (info "(emacs) Colors X") =E2=80=98--color=3DMODE=E2=80=99 ... =E2=80=98NUM=E2=80=99 ... Depending on your terminal=E2=80=99s capabilities, Emacs might = be able to turn on a color mode for 8, 16, 88, or 256 as the value of N= UM. I guess the key point is "Depending on your terminal=E2=80=99s capabiliti= es". This might explain why values other than 8 and 256 are not supported.