From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#36304: 27.0.50; request: switch to the superior HTML #RGB convention for colors Date: Sat, 22 Jun 2019 15:33:14 +0000 Message-ID: References: <83fto1onky.fsf@gnu.org> <83d0j5ol0i.fsf@gnu.org> <835zoxoe2n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000004840f8058beb4ef1" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59664"; mail-complaints-to="usenet@blaine.gmane.org" Cc: rms@gnu.org, 36304@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 22 17:34:23 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 1hei23-000FPs-EV for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 17:34:23 +0200 Original-Received: from localhost ([::1]:41274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hei22-00049D-4s for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 11:34:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38929) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hei1r-000493-QO for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 11:34:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hei1p-00066f-O6 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 11:34:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hei1i-0005y2-MA for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 11:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hei1i-0004Jy-IR for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 11:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2019 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36304 X-GNU-PR-Package: emacs Original-Received: via spool by 36304-submit@debbugs.gnu.org id=B36304.156121763816600 (code B ref 36304); Sat, 22 Jun 2019 15:34:02 +0000 Original-Received: (at 36304) by debbugs.gnu.org; 22 Jun 2019 15:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:52423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hei1e-0004Jg-8X for submit@debbugs.gnu.org; Sat, 22 Jun 2019 11:33:58 -0400 Original-Received: from mail-oi1-f169.google.com ([209.85.167.169]:37909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hei1c-0004JO-6z for 36304@debbugs.gnu.org; Sat, 22 Jun 2019 11:33:57 -0400 Original-Received: by mail-oi1-f169.google.com with SMTP id v186so6736480oie.5 for <36304@debbugs.gnu.org>; Sat, 22 Jun 2019 08:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X5xi+tZPPhx+gRMvyGLFu1s60lOgCw5lyCdCMV35oG8=; b=FSjGwUKOWrlUaRpkOsZ41m5uq+b2mChaAaAVHaFSbRxbrMMbTFhAGQshPu6VhdebAn K2ppYQ0V/Z/+Zl79/wlURFhAoGw5hZSmhqR9LTjJhiFNtL25jg5dV0Z2o1Ci9ThJNbZe xGvymTpDRiE1K6ATlDHZEk+BSJAz2nj0bYxfcNXoF3AMwvtFP4IAuHpAJcFb4Ty1kMN1 0mwFBiQnrofHaWKxXiffp2dXXlnmgo2NOfseSavBzR/fNUoGBQWEJb4NddNpdcxVvdkD d2eplGn+B2uQfxwMXwL9sVbnODGoF7Rm3e9BUkHzxLQo/ihq2+/gA4QKNq5VOV1M5uTX TUcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X5xi+tZPPhx+gRMvyGLFu1s60lOgCw5lyCdCMV35oG8=; b=jmb+YI+czbXQmNg9aQ6RNl/81164L7uhKnC1u93Fpk7hlHi6zwgKay630X6VJgSS3u +zat/UaG1WNAMfrkVvbSdG93hW71PRvaZo6lV03kpk7ckF/QM+13nnEMO3MqK7FcRbSA gAxbKYnPj60dc0jXJXpYzXwQDnE0fec/KHtEXnC5JBOZ1Nbh/0ceFhsc8vmJa3SFNSRl Q5pyQ091dpWklmClQ4MAFBAyqlXEDPsJHPD92bf7HNcr1TKZVAd7UZiY/kYmMxz9vGDS BY3BQdh0EvR665CN8fpt6pG2qmnszP4wweS7YOvOkqudgMhDi3YTmQl0o00KZkcNJway d7dw== X-Gm-Message-State: APjAAAXmAfC9lsXEu4Hvb1Ss+3+ZKYYiIylXhEpdV91eEmX6BBq+01Ow gt7tUJDVHzZZd4IIsSIyPBEz0ibUWtwvrOIvnDg= X-Google-Smtp-Source: APXvYqxOZH4GEulnvPuCryw7qmZ8fxZSvdsYbKhsbk9BYAZ3gQ8lWpNTOKlv7JvYwk97iUQSO2V+56/szeoR1DsK9A4= X-Received: by 2002:a05:6808:313:: with SMTP id i19mr5942079oie.30.1561217630475; Sat, 22 Jun 2019 08:33:50 -0700 (PDT) In-Reply-To: <835zoxoe2n.fsf@gnu.org> 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:161037 Archived-At: --0000000000004840f8058beb4ef1 Content-Type: text/plain; charset="UTF-8" On Sat, Jun 22, 2019 at 3:05 PM Eli Zaretskii wrote: > > From: Pip Cet > > Date: Sat, 22 Jun 2019 14:41:30 +0000 > > Cc: rms@gnu.org, 36304@debbugs.gnu.org > > > > and it's only used for text terminals, right? > > > > > > Yes, but we nowadays support text terminals that can display 24-bit > > > colors, and having their colors display differently from the same > > > color on X is just asking for bug reports. > > Okay, let's change it, then. > Thanks. While I was there, I've also made it accept upper-case hex digits (previously, #0F0 was accepted but #F00 wasn't), and fixed the ranges so rgb:f/f/f translates to (65535 65535 65535) rather than (255 255 255). --0000000000004840f8058beb4ef1 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Use-CSS-convention-for-interpreting-colors.patch" Content-Disposition: attachment; filename="0001-Use-CSS-convention-for-interpreting-colors.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jx7olqj60 RnJvbSA2OTczY2Q0YmM1NGFlZTczNTJiOTlhZmM3NzRlZTgyYWYzYzk0ODJmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBTYXQs IDIyIEp1biAyMDE5IDE1OjMxOjAwICswMDAwClN1YmplY3Q6IFtQQVRDSF0gVXNlIENTUyBjb252 ZW50aW9uIGZvciBpbnRl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aXRpb24gb2YgQ09MT1IsCiByZWdhcmRsZXNzIG9mIHdoZXRoZXIgdGhlIHRl cm1pbmFsIGNhbiBkaXNwbGF5IGl0LCBzbyB0aGUgcmV0dXJuIHZhbHVlCiBzaG91bGQgYmUgdGhl IHNhbWUgcmVnYXJkbGVzcyBvZiB3aGF0IGRpc3BsYXkgaXMgYmVpbmcgdXNlZC4iCiAgIChsZXQg KChsZW4gKGxlbmd0aCBjb2xvcikpKQotICAgIChjb25kICgoYW5kICg+PSBsZW4gNCkgOzsgWC1z dHlsZSAiI1hYWVlaWiIgY29sb3Igc3BlYworICAgIChjb25kICgoYW5kICg+PSBsZW4gNCkgOzsg IiNYWFlZWloiIGNvbG9yIHNwZWMKIAkJKGVxIChhcmVmIGNvbG9yIDApID8jKQogCQkobWVtYmVy IChhcmVmIGNvbG9yIDEpCiAJCQknKD8wID8xID8yID8zID80ID81ID82ID83ID84ID85Ci0JCQkg ICAgID9hID9iID9jID9kID9lID9mKSkpCisJCQkgICAgID9hID9iID9jID9kID9lID9mCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgID9BID9CID9DID9EID9FID9GKSkpCiAJICAgOzsgVHJh bnNsYXRlIHRoZSBzdHJpbmcgIiNYWFlZWloiIGludG8gYSBsaXN0Ci0JICAgOzsgb2YgbnVtYmVy cyAoWFggWVkgWlopLiAgSWYgdGhlIHByaW1hcnkgY29sb3JzCi0JICAgOzsgYXJlIHNwZWNpZmll ZCB3aXRoIGxlc3MgdGhhbiA0IGhleCBkaWdpdHMsCi0JICAgOzsgdGhlIHVzZWQgZGlnaXRzIHJl cHJlc2VudCB0aGUgbW9zdCBzaWduaWZpY2FudAotCSAgIDs7IGJpdHMgb2YgdGhlIHZhbHVlIChl LmcuICNYWVogPSAjWDAwMFkwMDBaMDAwKS4KKwkgICA7OyBvZiBudW1iZXJzIChYWCBZWSBaWiku ICBJZiBmZXdlciB0aGFuIDQgaGV4CisJICAgOzsgZGlnaXRzIGFyZSB1c2VkLCB0aGV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