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: Fri, 30 Nov 2018 00:29:21 +0200 Organization: LINKOV.NET Message-ID: <871s73cybi.fsf@mail.linkov.net> References: <9B715204-BE6D-4F02-B484-1EA9EDACE0EB@scratch.space> <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> <87k1l0c3be.fsf@mail.linkov.net> <83h8g3j0aa.fsf@gnu.org> <87y39fmnbn.fsf@mail.linkov.net> <83mupvgj18.fsf@gnu.org> <87r2f6hzf1.fsf@mail.linkov.net> <87ftvkssxh.fsf@mail.linkov.net> <838t1ce3tw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543532141 10043 195.159.176.226 (29 Nov 2018 22:55:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 22:55:41 +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 Thu Nov 29 23:55:36 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 1gSVDc-0002Wb-Ib for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 23:55:36 +0100 Original-Received: from localhost ([::1]:56997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSVFj-0004qk-9T for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Nov 2018 17:57:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSVE7-0003gP-25 for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 17:56:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSVE3-0002pX-RO for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 17:56:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSVE3-0002pP-Ma for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 17:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSVE3-0008H4-ID for bug-gnu-emacs@gnu.org; Thu, 29 Nov 2018 17:56:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Nov 2018 22:56:03 +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.154353212731702 (code B ref 33398); Thu, 29 Nov 2018 22:56:03 +0000 Original-Received: (at 33398) by debbugs.gnu.org; 29 Nov 2018 22:55:27 +0000 Original-Received: from localhost ([127.0.0.1]:55264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSVDS-0008FD-93 for submit@debbugs.gnu.org; Thu, 29 Nov 2018 17:55:27 -0500 Original-Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:63132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSVDQ-0008F3-Uj for 33398@debbugs.gnu.org; Thu, 29 Nov 2018 17:55:25 -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 6E04D5C48CA; Thu, 29 Nov 2018 22:55:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 14B6C5C4499; Thu, 29 Nov 2018 22:55:23 +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); Thu, 29 Nov 2018 22:55:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Grain-Duck: 35945167352cacb6_1543532123271_1503185853 X-MC-Loop-Signature: 1543532123271:2664216265 X-MC-Ingress-Time: 1543532123271 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 D00317F6CD; Thu, 29 Nov 2018 14:55:22 -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; s=linkov.net; bh=JwGklAJbt3pUZytZ00zWn4m/gEo=; b= tTWSMcqAZqz2wlP689BX1IcBxDweclVKALwUvIt8iNJf19o7bEurY/BHGJpsBblv 1w5mzy9OEM4vV140c985+c3z+3BClLpcFsdhGF0jX8HmUT9MuUVnKr6syY1E/ZXi rJ0zKKL6MxQsUbuhQ3Cy56SwOQn8CXnLoY7WVwkizjQ= 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 217A77F6C7; Thu, 29 Nov 2018 14:55:19 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <838t1ce3tw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Nov 2018 09:32:43 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedruddvgedgtdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegvddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt 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:152910 Archived-At: >> >>> Maybe something like this, but I'm not sure because the red background would >> >>> be too glaring on 88 colors, but more readable orchid1 is not quite red. >> >> >> >> Is OrangeRed better? >> > >> > OrangeRed is not better than red, but simply Orange looks much better, >> > so a new face could be named hi-orange. >> >> After trying to use Orange, I see it's too saturated, that is bad for >> light backgrounds. But I found a much better color: Gold. It is still >> related to red because gold can be reddish in an alloy with copper. > > I don't see how "gold" can be translated to "red", sorry. It > translates to yellow shades on both 8- and 16-color TTYs, as expected. > Did you try "IndianRed" instead? Unfortunately, "IndianRed" is so dark that it's unreadable. Whereas "Gold" is so prefect, that I can't find a replacement. But are translations really required? I created a definition that works well on all environments (I see that "gold" looks good on a graphical terminal, but on a 256-color TTY "orange" is better). Do you see a problem with these best-looking faces? (defface hi-gold '((((min-colors 88) (type x w32 ns)) (:background "gold")) (((min-colors 88)) (:background "orange")) (((min-colors 16)) (:background "red")) (t (:background "red"))) "Face for hi-lock mode." :group 'hi-lock-faces) (defface hi-aquamarine '((((min-colors 88)) (:background "aquamarine")) (((min-colors 16)) (:background "blue")) (t (:background "blue"))) "Face for hi-lock mode." :group 'hi-lock-faces)