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: Tue, 26 Apr 2016 18:48:52 -0400 Message-ID: <20160426184852.391f744d@ThinkPax> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_//T.h_DihfLd+AlsUkx73sJ9" X-Trace: ger.gmane.org 1461711021 11215 80.91.229.3 (26 Apr 2016 22:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 22:50:21 +0000 (UTC) To: 23383@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 00:50:10 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 1avBo2-0000Ch-6J for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 00:50:10 +0200 Original-Received: from localhost ([::1]:40018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBo1-0001qY-Ix for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Apr 2016 18:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBnx-0001mT-IM for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avBnu-0006R0-Cc for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBnu-0006Qs-8w for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avBnu-00082N-1l for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:50:02 -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: Tue, 26 Apr 2016 22:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146171094930778 (code B ref -1); Tue, 26 Apr 2016 22:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2016 22:49:09 +0000 Original-Received: from localhost ([127.0.0.1]:49160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avBn3-00080L-8b for submit@debbugs.gnu.org; Tue, 26 Apr 2016 18:49:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avBn1-0007zt-JJ for submit@debbugs.gnu.org; Tue, 26 Apr 2016 18:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avBmv-0006Nf-EW for submit@debbugs.gnu.org; Tue, 26 Apr 2016 18:49:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBmv-0006NV-B7 for submit@debbugs.gnu.org; Tue, 26 Apr 2016 18:49:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBmu-0000HJ-D3 for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:49:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avBmr-0006NH-85 for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:49:00 -0400 Original-Received: from mail-qg0-x241.google.com ([2607:f8b0:400d:c04::241]:34340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avBmr-0006N8-2d for bug-gnu-emacs@gnu.org; Tue, 26 Apr 2016 18:48:57 -0400 Original-Received: by mail-qg0-x241.google.com with SMTP id d90so1929450qgd.1 for ; Tue, 26 Apr 2016 15:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version; bh=elzthgTR8uCSjEsUyMhWwHfIwn4bvd20UhDWwVdXICs=; b=k+n0k5UDyz4h6AVNcyCqJgUrMztOkpFypTPw/YCTCR2csC6i3qSk6fh5y1ufbTJW70 yu4RlgmZaF+xapjZyBLCFTTPILA/NUzGvJDJv9FPcfVa6CnOSdj+pJZzMYeUH/kHQpfh c26FIWfyMU7E2H806NOTT0KC4Y9S6kI6Y21qcAo/jH1OfgyQ6br943sz2QDMd6kuLCdF 9/D4DgMEMz5aEkHax4Dt41FOZ6pPrTFOW1Uccp+2p8oPXlFxidcsjrfkDV7XU1K3Oc4w x0XKxHxBxap77EgvpKSs96ITtVJTEPTwTIKb/eRFvFAuy7gnbZBZYaE1UMf6/qZJNm8Q hK7g== 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:subject:message-id:mime-version; bh=elzthgTR8uCSjEsUyMhWwHfIwn4bvd20UhDWwVdXICs=; b=dZaihgFo7vNXTY15po/0xOPay6/GGSXiKyo77ym5VKgaIu9D5VYhW+6I72D+CghcTG geHh3dbrE9c467zGPd2GKXCIS+6IoAq9GCsfIR/83AIqUC8CIgi5XjwUzOv8UaRs2OoM wnR8uZzqQq3i70LpaOzv+8WK5oBjixd/uB35WBx++QfGyHO++sR31KuNLN7KbJrbGjMh A5KKUuNQUz7odcOmHVTYpRRDS6OewFmzAoMMrK5kpQDdKwHDpigwU06qUHYVv1AmmVIe FEPZ90cnbWRXwhZZHkqUdcPCE7/OhodB5B8+CGceuj1ASQby9iZJpGjWmPt/rsFe0KiC 7LCg== X-Gm-Message-State: AOPr4FWKu3qw0CkvmwX8jibrIyjq6Uwlmn01tIOSMHXp3VfYX2V6ubZ1Y6H/aXNQ98V9ow== X-Received: by 10.140.168.193 with SMTP id o184mr5259874qho.9.1461710935211; Tue, 26 Apr 2016 15:48:55 -0700 (PDT) Original-Received: from ThinkPax ([172.98.67.78]) by smtp.gmail.com with ESMTPSA id g3sm318550qge.1.2016.04.26.15.48.54 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 26 Apr 2016 15:48:54 -0700 (PDT) X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:116885 Archived-At: --MP_//T.h_DihfLd+AlsUkx73sJ9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The attached patch adds completion for CSS color functions such as `rgb()'. Values were taken from the =E2=80=9CCSS Color Module Level 4=E2=80= =9D. It can be found at: https://drafts.csswg.org/css-color/#color-type As a sidenote, how should we handle functions? Since they use parentheses, the point is going to be outside of parentheses. Eg. rgba()* ^(point) Also, should we include the parameters number? --MP_//T.h_DihfLd+AlsUkx73sJ9 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Add-completion-of-color-functions-in-CSS-mode.patch >From 52cc18080206fcd0d154a6c75c458a39bdcdfcbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etienne=20Prud=E2=80=99homme?= Date: Tue, 26 Apr 2016 18:44:08 -0400 Subject: [PATCH] Add completion of color functions in CSS mode * lisp/textmodes/css-mode.el (css-value-class-alist): Add CSS color functions as candidates for color values. --- lisp/textmodes/css-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index e30fb3e..78d4736 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -463,7 +463,8 @@ further value candidates, since that list would be infinite.") (color "aqua" "black" "blue" "fuchsia" "gray" "green" "lime" "maroon" "navy" "olive" "orange" "purple" "red" "silver" "teal" "white" - "yellow" "transparent") + "yellow" "transparent" color-functions) + (color-functions "color-mod()" "device-cmyk()" "gray()" "hsl()" "hsla()" "hwb()" "rgb()" "rgba()") (common-lig-values "common-ligatures" "no-common-ligatures") (contextual-alt-values "contextual" "no-contextual") (counter "counter()" "counters()") -- 2.8.1 --MP_//T.h_DihfLd+AlsUkx73sJ9--