diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2016-09-24 13:55:36 +0200 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2016-09-24 13:55:36 +0200 |
commit | 6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2 (patch) | |
tree | 0090d6f3b5b0a1d94d19d103d59c664886469144 /lisp/emacs-lisp/seq.el | |
parent | 05ed68a25d3c81cc20314c42a43aeb23d6c2d8f1 (diff) | |
download | emacs-6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2.tar.gz emacs-6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2.tar.bz2 emacs-6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2.zip |
Support completion of classes and IDs in CSS mode
* lisp/textmodes/css-mode.el (css-class-list-function): New variable
holding the function to call for retrieving completions of class
names.
(css-id-list-function): New variable holding the function to call for
retrieving completions of IDs.
(css--foreign-completions): New function for retrieving completions
from other buffers.
(css--complete-selector): Support completing HTML class names and IDs
from other buffers in addition to completing HTML tags.
* lisp/textmodes/sgml-mode.el (html--buffer-classes-cache): New
variable holding a cache for `html-current-buffer-classes'.
(html--buffer-ids-cache): New variable holding a cache for
`html-current-buffer-ids'.
(html-current-buffer-classes): New function returning a list of class
names used in the current buffer.
(html-current-buffer-ids): New function returning a list of IDs used
in the current buffer.
(html-mode): Set `css-class-list-function' and `css-id-list-function'
to `html-current-buffer-classes' and `html-current-buffer-ids'
respectively.
Diffstat (limited to 'lisp/emacs-lisp/seq.el')
0 files changed, 0 insertions, 0 deletions