unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Attribute completion task on css-mode
@ 2016-02-11 16:38 Etienne Prud'homme
  2016-02-11 19:45 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Etienne Prud'homme @ 2016-02-11 16:38 UTC (permalink / raw)
  To: emacs-devel

Hi.

Bug#20107 introduced a new feature in css-mode. It’s property
completion. So far, it seems to be quite good. In the Todo section,
there’s “attribute value completion”. I’m assuming 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-13 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 16:38 Attribute completion task on css-mode Etienne Prud'homme
2016-02-11 19:45 ` Stefan Monnier
2016-02-13 16:44   ` Simen Heggestøyl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).