From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Etienne Prud'homme Newsgroups: gmane.emacs.bugs Subject: bug#23383: [PATCH] Support completion of color functions in CSS mode Date: Sat, 21 May 2016 18:43:28 -0400 Message-ID: <20160521184328.1779ac46@thinkpax> References: <20160426184852.391f744d@ThinkPax> <1461784618.2119.2@smtp.gmail.com> <20160427201745.09dd0967@ThinkPax> <1461865897.9211.0@smtp.gmail.com> <20160520153728.612ac2bd@thinkpax> <1463827339.3189.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/UokDFOXrraT7P41UVT//brX" X-Trace: ger.gmane.org 1463870665 18633 80.91.229.3 (21 May 2016 22:44:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 May 2016 22:44:25 +0000 (UTC) Cc: 23383@debbugs.gnu.org To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 22 00:44:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b4Fcy-0000UR-Tc for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 May 2016 00:44:13 +0200 Original-Received: from localhost ([::1]:41418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Fcx-0000N2-QR for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 May 2016 18:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Fcs-0000Mq-EJ for bug-gnu-emacs@gnu.org; Sat, 21 May 2016 18:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4Fco-0004HJ-83 for bug-gnu-emacs@gnu.org; Sat, 21 May 2016 18:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Fco-0004HE-3W for bug-gnu-emacs@gnu.org; Sat, 21 May 2016 18:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b4Fcn-0003Xq-Sa for bug-gnu-emacs@gnu.org; Sat, 21 May 2016 18:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Etienne Prud'homme Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2016 22:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23383-submit@debbugs.gnu.org id=B23383.146387061713583 (code B ref 23383); Sat, 21 May 2016 22:44:01 +0000 Original-Received: (at 23383) by debbugs.gnu.org; 21 May 2016 22:43:37 +0000 Original-Received: from localhost ([127.0.0.1]:60267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4FcP-0003X1-9M for submit@debbugs.gnu.org; Sat, 21 May 2016 18:43:37 -0400 Original-Received: from mail-qk0-f175.google.com ([209.85.220.175]:35069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4FcO-0003Wm-8v for 23383@debbugs.gnu.org; Sat, 21 May 2016 18:43:36 -0400 Original-Received: by mail-qk0-f175.google.com with SMTP id n62so77037096qkc.2 for <23383@debbugs.gnu.org>; Sat, 21 May 2016 15:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=vX6gfMlXKckLoX7k41TwtbyXJ6a3IggaA5L29oDC28E=; b=GjDX2cWYd5KRkJHzVkriEhXN3Qu3IBdhMU1vfOvJZR1yy5LFWknhO9BWoHnq4ZFnGF tgdUfqD6X6Ps86b017dOo8x5clyD8a51/szyWhoK+yjwlK9iuagVaS7FRCxv5W9dKMyw 5ZXKRsEhWjn+hrFePfnqwtFMQAfHY9BwJvCWwBiwDECD+bccaN9UqoCQ3mf9DYbtXskI Lb0tW70ZlFZ3+U6yLtx3CdBGHr2Q9IzWgfn9v8m9iyYqDNyCjKAdESbbYwynNcb2svut vaYx6UkK4VmFJB5Se/W4ZZI5kidoQMButAYWr47zB2jynw6uewBnAn1ORGRnagH51nCr /bJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=vX6gfMlXKckLoX7k41TwtbyXJ6a3IggaA5L29oDC28E=; b=Rk/JMNA+gtmZu+YDbXq0a6GNClGWEmpnF26cLRNkVcN+G/ZZeddQjBOLOhUIY360ta 91ghdcqUFqOmZ00BlZDOF2myDupd5y/6JZVIQMZkbsNZ7y7C6m6EeB7zVEGx36mlzpsC Hk9ryNgeeeTISNxMRVfNVrhBjnYCCGWuPjGOhB3Ke4I85EWrJsXjW0L28R20gakb5Wgd 9gusItx2mz05Eq7toxAox23NtFTOsaYxDjgYq0BatpYn53bkyaTFVYehPrl9DvQs2yxo XQUNkJtIkCPOJmEXIjC2E46VIeFpnwUXQDH5ESgjn7e7rdMZS3rIDX9aoTH8SXbgeNE4 x1iQ== X-Gm-Message-State: AOPr4FUWd1/Vb7cfMGFPZR5s65pZ9umsuJloCnHJDONPDpGXPCqZJa/aRXt2bSX7Vd6bTw== X-Received: by 10.200.52.35 with SMTP id u32mr5693048qtb.8.1463870610867; Sat, 21 May 2016 15:43:30 -0700 (PDT) Original-Received: from thinkpax (modemcable105.49-20-96.mc.videotron.ca. [96.20.49.105]) by smtp.gmail.com with ESMTPSA id b77sm10921027qha.8.2016.05.21.15.43.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 May 2016 15:43:30 -0700 (PDT) In-Reply-To: <1463827339.3189.0@smtp.gmail.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) 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:118526 Archived-At: --MP_/UokDFOXrraT7P41UVT//brX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline > Thank you, Etienne, but it looks like the wrong patch was attached. It > is the same as the one from April. Oops! I've attached the new patch now. Etienne --MP_/UokDFOXrraT7P41UVT//brX Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Add-completion-of-colors-in-CSS-mode.patch >From 024683b111b1459c440da5a67582720b0d119457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etienne=20Prud=E2=80=99homme?= Date: Fri, 20 May 2016 14:10:46 -0400 Subject: [PATCH] Add completion of colors in CSS mode * lisp/textmodes/css-mode.el (css-value-class-alist): Add CSS colors from "CSS Color Module Level 3". --- lisp/textmodes/css-mode.el | 35 ++++++++++++++++++++++++++++++++--- test/lisp/textmodes/css-mode-tests.el | 2 +- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index cf407ef..060af33 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -463,9 +463,8 @@ css-value-class-alist (bg-size length percentage "auto" "cover" "contain") (box "border-box" "padding-box" "content-box") (color - "aqua" "black" "blue" "fuchsia" "gray" "green" "lime" "maroon" - "navy" "olive" "orange" "purple" "red" "silver" "teal" "white" - "yellow" "transparent") + "rgb()" "rgba()" "hsl()" "hsla()" named-color "transparent" + "currentColor") (common-lig-values "common-ligatures" "no-common-ligatures") (contextual-alt-values "contextual" "no-contextual") (counter "counter()" "counters()") @@ -504,6 +503,36 @@ css-value-class-alist (line-width length "thin" "medium" "thick") (linear-gradient "linear-gradient()") (margin-width "auto" length percentage) + (named-color + "aliceblue" "antiquewhite" "aqua" "aquamarine" "azure" "beige" + "bisque" "black" "blanchedalmond" "blue" "blueviolet" "brown" + "burlywood" "cadetblue" "chartreuse" "chocolate" "coral" + "cornflowerblue" "cornsilk" "crimson" "cyan" "darkblue" + "darkcyan" "darkgoldenrod" "darkgray" "darkgreen" "darkkhaki" + "darkmagenta" "darkolivegreen" "darkorange" "darkorchid" + "darkred" "darksalmon" "darkseagreen" "darkslateblue" + "darkslategray" "darkturquoise" "darkviolet" "deeppink" + "deepskyblue" "dimgray" "dodgerblue" "firebrick" "floralwhite" + "forestgreen" "fuchsia" "gainsboro" "ghostwhite" "gold" + "goldenrod" "gray" "green" "greenyellow" "honeydew" "hotpink" + "indianred" "indigo" "ivory" "khaki" "lavender" "lavenderblush" + "lawngreen" "lemonchiffon" "lightblue" "lightcoral" "lightcyan" + "lightgoldenrodyellow" "lightgray" "lightgreen" "lightpink" + "lightsalmon" "lightseagreen" "lightskyblue" "lightslategray" + "lightsteelblue" "lightyellow" "lime" "limegreen" "linen" + "magenta" "maroon" "mediumaquamarine" "mediumblue" "mediumorchid" + "mediumpurple" "mediumseagreen" "mediumslateblue" + "mediumspringgreen" "mediumturquoise" "mediumvioletred" + "midnightblue" "mintcream" "mistyrose" "moccasin" "navajowhite" + "navy" "oldlace" "olive" "olivedrab" "orange" "orangered" + "orchid" "palegoldenrod" "palegreen" "paleturquoise" + "palevioletred" "papayawhip" "peachpuff" "peru" "pink" "plum" + "powderblue" "purple" "rebeccapurple" "red" "rosybrown" + "royalblue" "saddlebrown" "salmon" "sandybrown" "seagreen" + "seashell" "sienna" "silver" "skyblue" "slateblue" "slategray" + "snow" "springgreen" "steelblue" "tan" "teal" "thistle" "tomato" + "turquoise" "violet" "wheat" "white" "whitesmoke" "yellow" + "yellowgreen") (number "calc()") (numeric-figure-values "lining-nums" "oldstyle-nums") (numeric-fraction-values "diagonal-fractions" "stacked-fractions") diff --git a/test/lisp/textmodes/css-mode-tests.el b/test/lisp/textmodes/css-mode-tests.el index 80d678a..fd86fd2 100644 --- a/test/lisp/textmodes/css-mode-tests.el +++ b/test/lisp/textmodes/css-mode-tests.el @@ -58,7 +58,7 @@ ;; Check that the `color' property doesn't cause infinite recursion ;; because it refers to the value class of the same name. - (should (= (length (css--property-values "color")) 18))) + (should (= (length (css--property-values "color")) 147))) (ert-deftest css-test-property-value-cache () "Test that `css--property-value-cache' is in use." -- 2.7.4 --MP_/UokDFOXrraT7P41UVT//brX--