[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing font
From: |
Daniel Colascione |
Subject: |
Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669. |
Date: |
Wed, 18 Mar 2015 20:34:19 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 03/18/2015 05:08 AM, Alan Mackenzie wrote:
> On Mon, Mar 16, 2015 at 04:53:28PM -0700, Daniel Colascione wrote:
>> On 02/01/2015 01:22 PM, Alan Mackenzie wrote:
>>> branch: emacs-24
>>> commit d69e9f1c24f37f36af33b0468c5a4e100dbb09b6
>>> Author: Alan Mackenzie <address@hidden>
>>> Commit: Alan Mackenzie <address@hidden>
>
>>> CC Mode: Stop Font Lock forcing fontification from BOL. Fixes
>>> debbugs#19669.
>
>>> cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
>>> nil.
>
>> This change is driving me nuts. Consider the following buffer, with @
>> representing point:
>
>> void foo() {
>> @
>> }
>
>> If I type [f o r SPC], then depending on timing, I see only the "or", or
>> only the "r", fontified in font-lock-keyword-face. A moment later,
>> jit-lock kicks in and refontifies the entire chunk properly.
>
> Sorry about this.
>
>> Can we please extend the start of the region back to at least the last `}'?
>
> This could be a tricky one to solve. For the sake of your sanity, please
> consider applying the following temporary patch; it "solves" the current
> problem, but unfortunately leaves bug #19669's symptoms apparent again.
I've been doing the equivalent in a mode hook. I'm not sure that
reverting to the previous behavior is the right thing either.
Fundamentally, it just feels wrong that the solution to any
fontification correctness bug should be to fontify less.
signature.asc
Description: OpenPGP digital signature
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Daniel Colascione, 2015/03/16
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/18
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669.,
Daniel Colascione <=
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/19
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Stefan Monnier, 2015/03/19
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/19
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Stefan Monnier, 2015/03/19
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/20
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Daniel Colascione, 2015/03/20
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/20
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Daniel Colascione, 2015/03/20
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Alan Mackenzie, 2015/03/20
- Re: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669., Stefan Monnier, 2015/03/20