[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-mode fontification feels random
From: |
Stefan Monnier |
Subject: |
Re: cc-mode fontification feels random |
Date: |
Tue, 08 Jun 2021 12:36:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> All I meant is that given the increase of performance of CPUs (until the
>> beginning of this century) and a non-corresponding increase in file size
>> and complexity of language syntax, programmers nowadays prefer correct
>> behavior over fast behavior, since the correct behavior is fast enough
>> anyway to be bearable.
> Not in CC Mode, not IMO anyway. But perhaps you don't consider what
> CC Mode does to be "correct behavior".
My comment was about using hacks like
`open-paren-in-column-0-is-defun-start` to avoid scanning from BOB in
`syntax-ppss/propertize`.
> And then, of course, there's a question "what is correct"? When I see
> something like
>
> static foo_t __attribute__((bar)) myvar;
>
> I'm not sure I'd care if everything before "myvar" would be in the
> same face and "myvar" in another face. IOW, it isn't necessarily
> important to me that fontification knows that foo_t is a type and not
> a keyword. So searching the file (and perhaps other files) for the
> definition of foo_t isn't important -- for the purposes of
> fontification.
FWIW, my `font-lock-type-face` is customized to:
'(font-lock-type-face ((t)))
so I'll let you guess my opinion on this ;-)
Stefan
- Re: cc-mode fontification feels random, (continued)
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/06
- Re: cc-mode fontification feels random, martin rudalics, 2021/06/07
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/07
- Re: cc-mode fontification feels random, martin rudalics, 2021/06/07
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/07
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/07
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/08
- Re: cc-mode fontification feels random, Richard Stallman, 2021/06/08
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/08
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/08
- Re: cc-mode fontification feels random,
Stefan Monnier <=
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/08
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/08
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/08
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/08
- Re: cc-mode fontification feels random, Alan Mackenzie, 2021/06/09
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/09
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/09
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/09
- Re: cc-mode fontification feels random, chad, 2021/06/09
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/10