|
From: | Dmitry Gutov |
Subject: | Re: master 7362554: Widen around c-font-lock-fontify-region. This fixes bug #38049. |
Date: | Thu, 14 Nov 2019 16:08:07 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 14.11.2019 15:49, Eli Zaretskii wrote:
Isn't this a kludge of sorts? We want CC mode not to fail to fontify if it's called in a narrowed context, regardless of how that happened, and you seem to be fixing just this particular situation? The actual problem is much more general, AFAIU.
Well, normally it wouldn't be called in a narrowed context (because font-lock already widens by default). Except when inside a multiple-mode context.
But there are tricky scenarios where it happens unexpectedly. So we'll have to take care of them somehow.
[Prev in Thread] | Current Thread | [Next in Thread] |