bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44214: 28.0.50; css-mode: no completion in declaration with newline


From: Simen Heggestøyl
Subject: bug#44214: 28.0.50; css-mode: no completion in declaration with newline after
Date: Tue, 27 Oct 2020 22:11:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Dmitry Gutov <dgutov@yandex.ru> writes:

>>> BTW, is the case when (ppss-innermost-start (syntax-ppss)) is nil, at
>>> all reachable?
>> Yes, when called from top level.
>
> Should the search ever succeed in this case, though? I would suggest
> to use (point) instead of (point-min) to auto-fail:
>
> [...]
>
> Otherwise, we both do the costly-ish search from the bob, and even
> risk it succeed in rare cases where the CSS in the previous rule is 
> incomplete (or the semicolon is omitted)

Good point, I didn't think about that.

Your proposed fixed looks good to me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]