aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSimen Heggestøyl2016-09-24 13:55:36 +0200
committerSimen Heggestøyl2016-09-24 13:55:36 +0200
commit6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2 (patch)
tree0090d6f3b5b0a1d94d19d103d59c664886469144 /etc
parent05ed68a25d3c81cc20314c42a43aeb23d6c2d8f1 (diff)
downloademacs-6ddcb0f10fb2b3c6c6a31733b28f7fbb30637ac2.tar.gz
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 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3149d918b56..c3f4cf01b26 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -392,8 +392,10 @@ enables reading of shell initialization files.
392** CSS mode 392** CSS mode
393 393
394--- 394---
395*** Support for completing attribute values, at-rules, bang-rules, and 395*** Support for completing attribute values, at-rules, bang-rules,
396HTML tags using the 'completion-at-point' command. 396HTML tags, classes and IDs using the 'completion-at-point' command.
397Completion candidates for HTML classes and IDs are retrieved from open
398HTML mode buffers.
397 399
398+++ 400+++
399** Emacs now supports character name escape sequences in character and 401** Emacs now supports character name escape sequences in character and