From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#36304: 27.0.50; request: switch to the superior HTML #RGB convention for colors Date: Fri, 28 Jun 2019 14:07:27 +0100 Message-ID: References: <83fto1onky.fsf@gnu.org> <83d0j5ol0i.fsf@gnu.org> <835zoxoe2n.fsf@gnu.org> <83a7e2i0wi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="201913"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: 36304@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 16:12:49 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgrcO-000qQe-Po for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 16:12:48 +0200 Original-Received: from localhost ([::1]:60418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgrcN-0008Ot-3c for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 10:12:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48911) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgqbk-0007Ts-Sz for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgqbi-0007Rm-DY for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:08:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55234) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgqbh-0007RP-T2 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgqbh-0002LJ-Ml for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:08:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 13:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36304 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15617272648980 (code B ref -1); Fri, 28 Jun 2019 13:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jun 2019 13:07:44 +0000 Original-Received: from localhost ([127.0.0.1]:40545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgqbP-0002Kl-S6 for submit@debbugs.gnu.org; Fri, 28 Jun 2019 09:07:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgqbO-0002Ke-DH for submit@debbugs.gnu.org; Fri, 28 Jun 2019 09:07:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48836) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgqbM-0007DA-2k for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:07:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgqbL-0007EN-2H for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:07:40 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:59594 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgqbK-0007DN-QZ for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 09:07:39 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hgqbF-000owa-NU for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 15:07:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:iKGzo3oVSxHVt6y4QMCxUIjTtB4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:161722 Archived-At: On Fri 28 Jun 2019, Pip Cet wrote: > Updated patch attached. Please let me know if you notice anything > else in there that needs changing. As this changes user-visible behaviour it should probably have a NEWS entry. > @@ -2398,9 +2400,35 @@ x_query_frame_background_color (struct frame *f, XColor *bgcolor) > > if (color_name[0] == '#') > { > - /* The hex form is parsed directly by XParseColor without > + /* Don't pass #RGB strings directly to XParseColor, because that > + follows the old convention of zero-extending each channel > + value: #f00 means #f00000. We want the new convention of > + scaling channel values, so #f00 means #ff0000. > + > + So we translate #f00 to rgb:f/0/0, which X handles > + differently. */ The use of "old" and "new" here is unclear. Consider "old" -> "X" and "new" -> "emacs". AndyM