Hi, In one of my org files, I will occasionally see src blocks lose their formatting. Specifically, if I switch to editing the src block, or I first open an org file that is expanded to a section with a src block, if the beginning #+begin_src is scrolled above the window, but part of the block itself is still visible, the src block will be fontified as if it were regular text in org. I have org-src-fontify-natively. If I scroll up so that #+begin_src is in view, it fontifies as expected. Is this expected behavior? Is there a way to increase the lookback amount? Thanks, Aaron
On Tuesday, 14 Jan 2020 at 07:21, Aaron Jensen wrote:
> In one of my org files, I will occasionally see src blocks lose their
> formatting. [...]
>
> Is this expected behavior? Is there a way to increase the lookback amount?
I don't see this behaviour. You might want to look at
jit-lock-chunk-size but that's me grasping at straws...
--
Eric S Fraga via Emacs 27.0.50, Org release_9.3-34-g2eee3c
On Tue, Jan 14, 2020 at 8:20 AM Fraga, Eric <e.fraga@ucl.ac.uk> wrote:
>
> On Tuesday, 14 Jan 2020 at 07:21, Aaron Jensen wrote:
> > In one of my org files, I will occasionally see src blocks lose their
> > formatting. [...]
> >
> > Is this expected behavior? Is there a way to increase the lookback amount?
>
> I don't see this behaviour. You might want to look at
> jit-lock-chunk-size but that's me grasping at straws...
I'm trying this out. I've also started opening src edit blocks in a
different window. I haven't seen the behavior since making these
changes, so I'm happy. Thanks!