help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org-mode blocks multiline fontification performance


From: Jean Louis
Subject: Re: Org-mode blocks multiline fontification performance
Date: Thu, 24 Jun 2021 09:12:46 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

* Sébastien Miquel <sebastien.miquel@posteo.eu> [2021-06-23 21:42]:
> Hi,
> 
> Org allows the use of special blocks such as
> 
> #+begin_proof
> Some LaTeX fragments in here: $a^2 + b^2 = c^2$.
> #+end_proof
> 
> that may be exported to matching LaTeX environments.
> 
> We want some light fontification of such blocks:
>  1. *Matching* #+begin and #+end lines should be fontified
>  2. Some background color face should be applied to the inside of the block.
>     (This isn't actually currently the case for such special blocks, but
> applies
>     for other blocks)
> 
> It is currently implemented by adding the `font-lock-multiline'
> property to the block.
> 
> When the inside of the block is modified, the region to refontify is
> extended to the whole block (the multiline region), and the whole
> block is refontified.
> 
> The issue is that
>  + the block may be quite large
>  + the LaTeX fragment fontification can be quite expensive.

Use the chunked approach, make 2 files one including the other.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]