diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/textmodes/css-mode.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 8a4daac353a..608462b36a6 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -793,13 +793,14 @@ Completion candidates are looked up in `css-property-alist' by | |||
| 793 | the string PROPERTY." | 793 | the string PROPERTY." |
| 794 | (or (gethash property css--property-value-cache) | 794 | (or (gethash property css--property-value-cache) |
| 795 | (let ((values | 795 | (let ((values |
| 796 | (seq-mapcat | 796 | (seq-uniq |
| 797 | (lambda (value) | 797 | (seq-mapcat |
| 798 | (if (stringp value) | 798 | (lambda (value) |
| 799 | (list value) | 799 | (if (stringp value) |
| 800 | (or (css--value-class-lookup value) | 800 | (list value) |
| 801 | (css--property-values (symbol-name value))))) | 801 | (or (css--value-class-lookup value) |
| 802 | (cdr (assoc property css-property-alist))))) | 802 | (css--property-values (symbol-name value))))) |
| 803 | (cdr (assoc property css-property-alist)))))) | ||
| 803 | (puthash property values css--property-value-cache)))) | 804 | (puthash property values css--property-value-cache)))) |
| 804 | 805 | ||
| 805 | (defun css--complete-property-value () | 806 | (defun css--complete-property-value () |