From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yoN5EqTq0GB6PwAAgWs5BA (envelope-from ) for ; Mon, 21 Jun 2021 21:38:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EI2bDaTq0GCDFAAAB5/wlQ (envelope-from ) for ; Mon, 21 Jun 2021 19:38:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6AC431548E for ; Mon, 21 Jun 2021 21:38:11 +0200 (CEST) Received: from localhost ([::1]:45452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvPkH-0006Yk-6r for larch@yhetil.org; Mon, 21 Jun 2021 15:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvPj8-0006Ya-QI for emacs-orgmode@gnu.org; Mon, 21 Jun 2021 15:36:58 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:42549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvPj6-0007pb-MG for emacs-orgmode@gnu.org; Mon, 21 Jun 2021 15:36:58 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id l26so1757953vsm.9 for ; Mon, 21 Jun 2021 12:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=koT8YPAQw18JVDQAqyeA3PPCdoQK+x6Suuzv5f1CA24=; b=Tfw7oCsg2IqOU6AwdHvBeSKQsrJPjlpd7BlsOSJBO7BD5Hs7ts1n/mF1G8c5t7MKgh 8dCtEF7lsmGBtAdBxm7NSeI3v0Bsefo15MobTPBdqk+Hesl/vduyNS5HCERTQBu6PG19 p2wqX06pZGJR6P313yGD9BCbx2+NcgoOSkViCgVwVnTZvHTLdzOQ+Qeg40aosM+nRJ0c mRQyt4co9Cc/ssT2pAWBPTjhzYzpZUWL+WCCBLIm5LIZp9syGlKR/rGbwgcvjDWL6NJD Cnk8gUDv0BUrOJEo0N/U5XI3Ci7lsByygV7iHd9Tod3fQviQRX1BI0w7rrgsBmAwsTV/ O+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=koT8YPAQw18JVDQAqyeA3PPCdoQK+x6Suuzv5f1CA24=; b=qwy4TMuZvlrdkR5YWSBJkc1HvXR03EnQxqKW5uwZSBKLLdSPauc9aIbtdLDU6TLUil mOih5MkwzMmhFgn+gaAiFUzTILxIDsyXGRgKRD3ULiyQj7VfJJE2itP5BQg3pHP7+amm SEVh2etg5N0N4mwYmriqaZ0xhMMTl7AtPuKuQs+XlH1tr8eKEI84uYwpe6/UMlM921Ve xJ9FgecYTaFl6KH+lL4bwltxjdjLp2S6LuhC/S5nTMe9hqttzfbnPEanFGWyyiaX5V4W 4Sjk7trMPdlIWFnpjUWMuQw26LCJl2k3OxqfSWbLE7Ifveasu+UdieioZxjWIBkZqSRS I32Q== X-Gm-Message-State: AOAM5316UyFNmOw6d92dukaWJuMxZ5svKqeauUivCIvViF9g9aq/Yj3C mCL31DrDf4RPjfuSzoqWTUef7hyMJWgFIGPsorY= X-Google-Smtp-Source: ABdhPJwFOu/WcvTkn3nb6GU+c01zRWinwVS/d25GgILKKyVu5Tv+5Z6PmaAF+GhTQxo3XggUr6S4qnEPSFAzQaorg+w= X-Received: by 2002:a05:6102:99:: with SMTP id t25mr19480583vsp.48.1624304215736; Mon, 21 Jun 2021 12:36:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Hendy Date: Mon, 21 Jun 2021 14:36:44 -0500 Message-ID: Subject: Re: Large source block causes org-mode to be unusable To: John Kitchin Content-Type: multipart/alternative; boundary="000000000000c946a105c54bcbb0" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=jw.hendy@gmail.com; helo=mail-vs1-xe2a.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode , =?UTF-8?Q?L=C3=A9o_Ackermann?= Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624304291; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=koT8YPAQw18JVDQAqyeA3PPCdoQK+x6Suuzv5f1CA24=; b=VqnZ1ewQ40Moodv2+ZReSpbraMIOB8gAmUehf6lnttsrmp0YA8NZBK7TwC7e4aXx76zYqG 0uTYHTHAjM59VcmoTSYtDyz3LJt9mJw/w9MiLVVVILpEeM5L05/3oCVGYNWrUlyB1VCBb/ x1iUYwmleJSI3DBfVUoFCZRjc2Td3+dcZ/yTD3MhWMfiy3OYYqaet69bWC1p6+BKHglxt0 FEuXOVNQ/5SoniY5yn1jNg4AkGHSUrBDW/zYj/FMXdjp8z28oe1s9nYwUW0RWRuWpGR2Ni Xm34QMgO6gSwHzWyeGjO52U2SF7UOmG0jt+EDm1vNwN9+GB8ZNieh2X6a7CBbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624304291; a=rsa-sha256; cv=none; b=mQ8elIUnCyBjaicuoAdR+wQA4z8oQtFW/ctp71Z+0LB4phDbyUCk/48iI1Mn9R26E3DJDf Qjdw+PHZLjna0cPRo+njwUTzzM5aiIhtHxQv0u3R35O1oDPnwRWwTvUImhUMgAdeasEEhy uLKfIjd3oDLA0f+Qd5vAiJwfiRjBDfA28HshToMkVCukIjTPkoC6dsVDF0xAgbdDV3ot4/ IYuw/f+8KifUnxYm6WM2PMG6QuGKV9TCWMBV9kJAljqoIvawE/6lkMrx7HVyN7Loib57Jh Ac59seDsos/FpjpRh2JQw04eqHw5eFMO6K+iN3jrJ+lr5Ir8MRgPXdP/yyZ4Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Tfw7oCsg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Tfw7oCsg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6AC431548E X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: w9p8TWLCus4G --000000000000c946a105c54bcbb0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Indeed. The top google hit for "emacs fontify proof block slow" I provided says exactly that :) https://emacs.stackexchange.com/questions/46561/org-mode-9-too-slow-with-lo= ng-code-blocks """ That said, I think keeping 2000 lines of source code inside an org src block is neither a standard use case nor a reasonable idea. You can use the #+INCLUDE ... src ... directive or split the block into a number of more reasonably sized cells. If you insist on keeping the entire block, then disable native highlighting of src code blocks. """ On Mon, Jun 21, 2021 at 2:23 PM John Kitchin wrote: > A quick and dirty way to fix this might be an include file, i.e. move > the block out of your manuscript file into a separate org file, and then > just include it. > > L=C3=A9o Ackermann writes: > > > Dear all, > > > > I am working in an org-file of reasonable size (<2000 lines): my first > > paper written in org-mode. Everything fine (and fast) until I started t= o > > add `#+BEGIN_proof / #+END_proof` within my .org to make my .pdf export > > prettier. This caused the editing of the proofs to be very slow: > navigation > > within the proof is fast but adding/removing any char takes around 4s p= er > > char. > > It seems that the fontify function is responsible for that (see > > screenshot). As far as I understand, this function tries to fontify the > > whole block as soon as a single char is modified. In my case, it then > tries > > to fontify a whole proof (~4 pages in my .pdf, with many LaTeX formulas= ) > > several times per second... > > > > Is there a way to make this fontify function to act "around my cursor" = ? > > > > Best, > > Leo > > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > Pronouns: he/him/his > > --000000000000c946a105c54bcbb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Indeed. The top google hit for "emacs fontify pr= oof block slow" I provided says exactly that :)

""= ;"
That said, I think keeping 2000 lines of source code insi= de an org src block is neither a standard use case nor a reasonable idea. Y= ou can use the #+INCLUDE ... src ... directive or split the block into a nu= mber of more reasonably sized cells. If you insist on keeping the entire bl= ock, then disable native highlighting of src code blocks.
""&q= uot;

On Mon, Jun 21, 2021 at 2:23 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
=
A quick and dirty w= ay to fix this might be an include file, i.e. move
the block out of your manuscript file into a separate org file, and then just include it.

L=C3=A9o Ackermann <leo.komba@gmail.com> writes:

> Dear all,
>
> I am working in an org-file of reasonable size (<2000 lines): my fi= rst
> paper written in org-mode. Everything fine (and fast) until I started = to
> add `#+BEGIN_proof / #+END_proof` within my .org to make my .pdf expor= t
> prettier. This caused the editing of the proofs to be very slow: navig= ation
> within the proof is fast but adding/removing any char takes around 4s = per
> char.
> It seems that the fontify function is responsible for that (see
> screenshot). As far as I understand, this function tries to fontify th= e
> whole block as soon as a single char is modified. In my case, it then = tries
> to fontify a whole proof (~4 pages in my .pdf, with many LaTeX formula= s)
> several times per second...
>
> Is there a way to make this fontify function to act "around my cu= rsor" ?
>
> Best,
> Leo


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
Pronouns: he/him/his

--000000000000c946a105c54bcbb0--