* 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
* Re: Attribute completion task on css-mode
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
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2016-02-11 19:45 UTC (permalink / raw)
To: emacs-devel
> 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.
The first step would probably be to move the company-css functionality
in css-mode.el.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Attribute completion task on css-mode
2016-02-11 19:45 ` Stefan Monnier
@ 2016-02-13 16:44 ` Simen Heggestøyl
0 siblings, 0 replies; 3+ messages in thread
From: Simen Heggestøyl @ 2016-02-13 16:44 UTC (permalink / raw)
To: Etienne Prud'homme; +Cc: Stefan Monnier, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi, Etienne!
Thanks for trying it out. It's been on my mind for a long time to
extend it to work for attribute values as well. I haven't gotten
around to it yet, but I hope I will soon.
Like Stefan, I also think it would be a great first step to move
functionality from company-css into css-mode.el.
-- Simen
[-- Attachment #2: Type: text/html, Size: 424 bytes --]
^ 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).