[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Emacs hangs while loading .org file
From: |
Nick Dokos |
Subject: |
Re: [O] Emacs hangs while loading .org file |
Date: |
Wed, 17 Aug 2016 13:14:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
David Dynerman <address@hidden> writes:
> Dear list,
>
> I have a fairly large org-file [1] (~2k lines) containing a substantial
> amount of code in #+BEGIN_SRC/#+END_SRC blocks. The code is mostly
> python, with one or two C blocks.
>
> Recently emacs has started to hang when loading the file for the first
> time. I saved a profiling report [2] where I loaded the file, let emacs
> sit unresponsive for about 5 minutes, then typed C-g.
>
> The report seems to indicate that fontifying python blocks is the
> problem - 90% of time is spent in python-nav-end-of-statement.
>
> Has anyone experienced something like this with large org files
> containing python code? The file contains a good chunk of scratch code
> which may contain python errors - is it possible that some syntactically
> bad python code is causing the fontification to run amok?
>
> If anyone has suggestions for finding the culprit, I'd be very happy to
> hear.
>
> Thank you,
> David
>
> [1] https://www.math.berkeley.edu/~dynerman/angular_xcorr.org
> [2] https://www.math.berkeley.edu/~dynerman/slow-org-load
>
>
Just a data point:
I tried loading it: I said "no" to the file local variables question;
the file loaded more or less instantly after that.
--
Nick