From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29456: [PATCH] Add command for cycling between CSS color formats Date: Mon, 27 Nov 2017 20:11:21 +0200 Message-ID: <83d1436186.fsf@gnu.org> References: <1511709711.2341.0@smtp.gmail.com> <83indv645v.fsf@gnu.org> <87a7z7aaba.fsf@tromey.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511806336 1658 195.159.176.226 (27 Nov 2017 18:12:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 18:12:16 +0000 (UTC) Cc: 29456@debbugs.gnu.org, simenheg@gmail.com, monnier@iro.umontreal.ca To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 19:12:12 2017 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 1eJNt0-0007zM-Be for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 19:12:07 +0100 Original-Received: from localhost ([::1]:34122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJNt4-0003DZ-Bz for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 13:12:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJNsz-0003CU-Gg for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 13:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJNsw-0003nq-91 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 13:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJNsw-0003nf-5S for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 13:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJNsv-0000cz-Sy for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 13:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 18:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 29456-submit@debbugs.gnu.org id=B29456.15118063062382 (code B ref 29456); Mon, 27 Nov 2017 18:12:01 +0000 Original-Received: (at 29456) by debbugs.gnu.org; 27 Nov 2017 18:11:46 +0000 Original-Received: from localhost ([127.0.0.1]:32989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJNsg-0000cM-3R for submit@debbugs.gnu.org; Mon, 27 Nov 2017 13:11:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJNse-0000c8-14 for 29456@debbugs.gnu.org; Mon, 27 Nov 2017 13:11:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJNsX-0003aC-VH for 29456@debbugs.gnu.org; Mon, 27 Nov 2017 13:11:38 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJNsS-0003Y2-Py; Mon, 27 Nov 2017 13:11:32 -0500 Original-Received: from [176.228.60.248] (port=2319 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eJNsS-0007gF-2c; Mon, 27 Nov 2017 13:11:32 -0500 In-reply-to: <87a7z7aaba.fsf@tromey.com> (message from Tom Tromey on Mon, 27 Nov 2017 10:41:29 -0700) 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: 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:140467 Archived-At: > From: Tom Tromey > Cc: Simen Heggestøyl , > 29456@debbugs.gnu.org, tom@tromey.com, monnier@iro.umontreal.ca > Date: Mon, 27 Nov 2017 10:41:29 -0700 > > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> The latter follows the X color definitions, so why does css-mode.el > Eli> need a different interpretation of the hex-RGB notation? > > CSS color names came from X a long time ago, but their mapping to rgb is > now part of the CSS specification. And, apparently there were multiple > versions of this file coming from X. The Emacs one would be ok provided > the lists are identical and will always remain so. Otherwise, css-mode > needs its own list. Sorry, I don't understand: what list are you talking about? > Eli> My fear is that someone will mix css-mode functions with those from > Eli> elsewhere in Emacs, and will bump into confusing and contradicting > Eli> results. Is it possible to avoid that? > > Using "css-" in the name seems sufficient to me. Maybe a comment > explaining this would help as well. A comment will help, but I'm actually wondering why does css-mode need to use 12-bit or 16-bit per component RGB notation? Why not use only 8-bit, as in #RRGGBB? The problems only happen in converting 8-bit RGB notations to higher number of bits.