From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Etienne Prud'homme Newsgroups: gmane.emacs.devel Subject: Attribute completion task on css-mode Date: Thu, 11 Feb 2016 11:38:35 -0500 Message-ID: <20160211113835.6b56dc11@ThinkPax> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455209565 24038 80.91.229.3 (11 Feb 2016 16:52:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 16:52:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 11 17:52:41 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aTuTs-0000IX-Mp for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 17:52:36 +0100 Original-Received: from localhost ([::1]:51677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTuTo-0000ms-Pz for ged-emacs-devel@m.gmane.org; Thu, 11 Feb 2016 11:52:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTuGQ-0005Ll-SE for emacs-devel@gnu.org; Thu, 11 Feb 2016 11:38:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTuGM-0001ms-9z for emacs-devel@gnu.org; Thu, 11 Feb 2016 11:38:42 -0500 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:35703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTuGM-0001mo-5V for emacs-devel@gnu.org; Thu, 11 Feb 2016 11:38:38 -0500 Original-Received: by mail-qk0-x229.google.com with SMTP id o6so21010097qkc.2 for ; Thu, 11 Feb 2016 08:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; bh=YUnnqVpnTEIEPc8+TIC+kjMp0g5huBEfDviOj99gj/I=; b=vm1tDj56a5l4exTfT+bwbqpWGnsk5nbXJsoYYRDioy7ELMKUBwhKet7aUQA0NcS/fu Am7CPs+ZVTnyiylHDn9rfnwpXtww4Mut7YCwYonnDOCoUpuefcvt+RAty6k/kWlyicea xC0HOT45MjglK536TXCV+0oEmTkERUlzMsYv2B2VOQFy2JTja3Qv2XhCMjlOdE+0z2pn 8t+xFOnUotmwz4twM71okrtMhFwBeCC5Zgszhl2cl4FMwpsy47trCsfSumDGHqh06i9r RkkQOrZ75AEdTd3ciIwxa4XOl/kiLj6qgd2HkHXdMptl59TBM40pw440dDRgyO0Wo6U8 aTAg== 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 :content-type:content-transfer-encoding; bh=YUnnqVpnTEIEPc8+TIC+kjMp0g5huBEfDviOj99gj/I=; b=jFGjdpbjDPaZOXg/QbMmj1hi717wlx3KEhsdGXupCykbQ0qElXdMrfr/QCFTAC6gcd UtCjBi0/j6jnEAAHSg8NuAe7jLLih/LxzSSUXG82Y0Fl0EMr2hwkRXui9Xde2Dnae0Nq hBM+cDH64+34Usc723d8TZLbvvBU126ELmUP1NLL3YXmcvItEzqdfrr8VdrXu/dpXx9V X9XZzjK5nERAx6pKv7ADv3QMiyu0cCnU2R3sJa/s6iv5qKlD9HZC60cExGaGf5Sat60a 19qlcVVQbUU0KEwmpcdatNY2qo4IjwNpd9R0qYsC0PyS8140BVnFItyHaE0WAXW0xU2/ OlUQ== X-Gm-Message-State: AG10YOQCaXRqcJ6RI//aV5fGM+nWsZPYnuGAfQXd6U4Z63d7pzv5gnlWRM6twML1Q74gQA== X-Received: by 10.55.41.7 with SMTP id p7mr30955038qkh.86.1455208717600; Thu, 11 Feb 2016 08:38:37 -0800 (PST) Original-Received: from ThinkPax ([108.61.13.44]) by smtp.gmail.com with ESMTPSA id l129sm3625525qhc.24.2016.02.11.08.38.37 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 11 Feb 2016 08:38:37 -0800 (PST) X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.23; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::229 X-Mailman-Approved-At: Thu, 11 Feb 2016 11:52:29 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199752 Archived-At: Hi. Bug#20107 introduced a new feature in css-mode. It=E2=80=99s property completion. So far, it seems to be quite good. In the Todo section, there=E2=80=99s =E2=80=9Cattribute value completion=E2=80=9D. I=E2=80=99m a= ssuming that it means property values completion since there are attribute selectors in CSS. I was wondering what would be best to include in Emacs. There are already several packages that do that very well. If css-mode is to contain property value completion, should it be context aware (should it give values according to property). company-css already implements that behaviour by making a list of attributes & their corresponding valid values. It could be one way to do, but may be hard to maintain since CSS specifications are always changing. Another way would be to make a Semantic language parser. It would give much more power for doing complex things. Etienne Prud'homme