diff options
| author | Simen Heggestøyl | 2016-07-06 19:25:10 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2016-07-06 19:25:10 +0200 |
| commit | c0a5ae906d09c976eb4c90f3f5cd98089512318b (patch) | |
| tree | 6bd18575586068b285279a1c14e5a93b97299559 /lisp | |
| parent | 2cbd80a5f8a75aa7516a9f0cc467b72c05e94b4a (diff) | |
| download | emacs-c0a5ae906d09c976eb4c90f3f5cd98089512318b.tar.gz emacs-c0a5ae906d09c976eb4c90f3f5cd98089512318b.zip | |
Complete "initial" and "unset" in CSS mode
* lisp/textmodes/css-mode.el (css--complete-property-value): Make
"initial" and "unset" completion candidates for all CSS properties,
just like "inherit".
* test/lisp/textmodes/css-mode-tests.el
(css-test-complete-property-value): Update test to reflect the above
change.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/textmodes/css-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 060af332179..261826e8b26 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -853,7 +853,8 @@ the string PROPERTY." | |||
| 853 | (save-excursion | 853 | (save-excursion |
| 854 | (skip-chars-backward "[:graph:]") | 854 | (skip-chars-backward "[:graph:]") |
| 855 | (list (point) end | 855 | (list (point) end |
| 856 | (cons "inherit" (css--property-values property)))))))) | 856 | (append '("inherit" "initial" "unset") |
| 857 | (css--property-values property)))))))) | ||
| 857 | 858 | ||
| 858 | (defvar css--html-tags (mapcar #'car html-tag-alist) | 859 | (defvar css--html-tags (mapcar #'car html-tag-alist) |
| 859 | "List of HTML tags. | 860 | "List of HTML tags. |