emacs-devel
[Top][All Lists]
Advanced

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

Re: master 7362554: Widen around c-font-lock-fontify-region. This fixes


From: Eli Zaretskii
Subject: Re: master 7362554: Widen around c-font-lock-fontify-region. This fixes bug #38049.
Date: Thu, 14 Nov 2019 15:35:19 +0200

> Date: Wed, 13 Nov 2019 21:19:36 +0000
> From: Alan Mackenzie <address@hidden>
> Cc: address@hidden
> 
> > > Difficult.  In CC Mode it is sometimes necessary to enlarge a font
> > > lock region so as to get the context needed to parse some element of
> > > the buffer.  This was what gave rise to the bug.
> 
> > Did that really happen in the reported scenario? I mean,
> > font-lock-dont-widen is usually nil, so font-lock will call widen for
> > you already.
> 
> Cutting and pasting from the bug thread for bug #38049:

But that couldn't happen in the use case with code fragments, could
it?  The mode which manages such buffers narrows the buffer to include
the entire code fragment, so no reason for CC mode to widen.  Right?



reply via email to

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