Subject: bug#27392: 26.0.50; [css-mode] Completion fails after "grid" is typed out

From: Simen Heggestøyl <[email-masked]>
Date: Fri, 16 Jun 2017 20:23:29 +0200

It seems to be because 'css--complete-property-value' is a bit too 
eager.

Can you try with the following patch? If it's sufficent I'll install it
with some test cases.

-- Simen
>From baf93870893be37e4f214963bdb31659d7514af7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <[email-masked]>
Date: Fri, 16 Jun 2017 20:19:56 +0200
Subject: [PATCH] WIP: Make css--complete-property-value less eager

---
 lisp/textmodes/css-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 0beaaaa32f..3c3c38afc9 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -1292,7 +1292,8 @@ css--complete-property-value
            (let ((property-end (point)))
              (skip-chars-backward "-[:alnum:]")
              (let ((property (buffer-substring (point) property-end)))
-               (car (member property css-property-ids)))))))
+               (and (eq (char-after property-end) ?:)
+                    (car (member property css-property-ids))))))))
     (when property
       (let ((end (point)))
         (save-excursion
-- 
2.11.0