emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Src block fontification when scrolled off window
@ 2020-01-14 15:21 Aaron Jensen
  2020-01-14 16:20 ` Fraga, Eric
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Jensen @ 2020-01-14 15:21 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Src block fontification when scrolled off window
  2020-01-14 15:21 Src block fontification when scrolled off window Aaron Jensen
@ 2020-01-14 16:20 ` Fraga, Eric
  2020-01-20 22:04   ` Aaron Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Fraga, Eric @ 2020-01-14 16:20 UTC (permalink / raw)
  To: Aaron Jensen; +Cc: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Src block fontification when scrolled off window
  2020-01-14 16:20 ` Fraga, Eric
@ 2020-01-20 22:04   ` Aaron Jensen
  0 siblings, 0 replies; 3+ messages in thread
From: Aaron Jensen @ 2020-01-20 22:04 UTC (permalink / raw)
  To: Fraga, Eric; +Cc: emacs-orgmode@gnu.org

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-20 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 15:21 Src block fontification when scrolled off window Aaron Jensen
2020-01-14 16:20 ` Fraga, Eric
2020-01-20 22:04   ` Aaron Jensen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).