|
From: | Daniel Colascione |
Subject: | Re: cc-mode fontification feels random |
Date: | Wed, 09 Jun 2021 23:58:40 -0700 |
User-agent: | AquaMail/1.29.2-1810 (build: 102900008) |
On June 9, 2021 11:55:45 PM Eli Zaretskii <eliz@gnu.org> wrote:
From: Daniel Colascione <dancol@dancol.org> Date: Wed, 09 Jun 2021 19:21:23 -0700 Cc: rudalics@gmx.at, monnier@iro.umontreal.ca, rms@gnu.org, emacs-devel@gnu.orgBy replacing these accurate functions with rough ones, the fontification would be right most of the time, but a mess at other times (for example, when there are big comments near point). (i) is more important for C++ that C, but still makes a difference iAnother option is adding core support to speed up these operations. I don't think we should be sacrificing correctness for speed.If speeding that up is feasible, sure, that's a better alternative. Sacrificing correctness is a kind-of retreat, justified only when a better solution is not at hand.
Sure. But I started this thread not because cc-mode was slow, but because specific design choices led to inconsistent fontification. It'd be a shame for it to result in changes that made cc-mode even more inconsistent.
[Prev in Thread] | Current Thread | [Next in Thread] |