From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: New optimisations for long raw strings in C++ Mode. Date: Thu, 11 Aug 2022 22:47:34 +0700 Message-ID: References: <87fsi5xw9l.fsf@gnus.org> <83wnbhtlzb.fsf@gnu.org> <703c2351d96919276449@heytings.org> <83o7wsqlcm.fsf@gnu.org> <83edxoqcnl.fsf@gnu.org> <83a68cqbm0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2491"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , gregory@heytings.org, larsi@gnus.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 11 17:51:53 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMATQ-0000GO-6b for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Aug 2022 17:51:52 +0200 Original-Received: from localhost ([::1]:56486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMATP-0000ny-6I for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Aug 2022 11:51:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAPX-0005XT-RZ for emacs-devel@gnu.org; Thu, 11 Aug 2022 11:47:53 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:33719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMAPW-0003ZQ-CV; Thu, 11 Aug 2022 11:47:51 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id v3so21880248wrp.0; Thu, 11 Aug 2022 08:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=5BXa5pE74nSpsvj03g2SuPc9nCwcx6VG/sYxnIvxWSQ=; b=cchi5wWVuy230XjU4z9WCZ5rwvU1F1PRObKVBTz+cVew+mj1IZPEhVnBtpdlh5UqAw 1cff9KhtocNBZ41yRqUUuz2l8i7FJYgAjR73N+y+hA2n9sV2hup8FOlyWVIYlpE5+Y4o UNP19JB7CZ7yllj01Rafbf3iHS7m8tAnxUGbnMshm8MUPfwJOvGdM57wX1gB4syGpO6n uQv4xV4Rd5BbP9FuRWWA8ZA4ha0ZuEIb27a4tqjd/+ZkTYEj6QdaQF55wB4t4+3mXqHT JsPin9mqxAZQZkSoupe3n+fyHOsLN3AcRkd0IfMXbU5wUjeOf7qlkqGJ/QThti36YO2w Aq8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=5BXa5pE74nSpsvj03g2SuPc9nCwcx6VG/sYxnIvxWSQ=; b=LauCM0zAsi+auClnperGuhcYUba0jnyjiIaGJOM/1lAnsDSxAIhPnqSM0FYziEzGZL jPO7C19yQJ/ewOsgRl84283BgjnhNBc2PYd8w+7a0xhj6qITDbfe59XcdBkV5kJnFEGB Sxige0RJA9M+IDJy2IM1v6TdFvVtP8v34Nn63xghE+gd5t+wM0T4Pmow9tBrmEY+VmUp Mp/vAig5fsSwRBO8+bhQ1GtvaCXLVy2yPuiVloaoTWBocmzlSEkXseJ3o1gfCXGnFPzF KnCvNty4FTlmWOCMyKkyEcFp9JXq8vZI+AhtqyFuHQ2i1O8n+bFc3jmHb/kQK0rfWOyp j5rQ== X-Gm-Message-State: ACgBeo20ajDkbHSy3WXjykf/+Tm5SPdnn3rHNDu3H67+AoBYo/2jg4nB 3wTyoeYaHDkBu2E+83YthrP0xjHCwY10tMZSJ5c= X-Google-Smtp-Source: AA6agR7y6aUpCLpk1e0/muADKcm7zGK6MtfgoLyb9KeRt0JYHsS3Wk/gTcNVcrIrq6AOPYTcqvcAe7I7F5dmoVVifQ0= X-Received: by 2002:adf:fe0d:0:b0:220:5df9:e5cf with SMTP id n13-20020adffe0d000000b002205df9e5cfmr20810634wrr.332.1660232867236; Thu, 11 Aug 2022 08:47:47 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293375 Archived-At: On Thu, 11 Aug 2022 at 00:36, Alan Mackenzie wrote: > If you open a file in its middle (e.g., by desktop), and there's an open > block comment there, you've got to look arbitrarily far back to detect > that state. In practice parse-partial-sexp from point-min will be used, > likely with cacheing of whatever sort. Does fontification need to be synchronous? I.e. you open a file in its middle, do you expect it fontified exactly and immediately on first render? Some well-known IDEs[^*] make do with first rendering an inexact approximation of syntax highlighting. Then, as the user starts working with the buffer, they may have a few thousand idle milliseconds in which to improve the approximation. [^*]: e.g. one that starts with =E2=80=9Cvs=E2=80=9D and ends with =E2=80= =9Ccode=E2=80=9D.