[Top][All Lists]

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

[O] Emacs hangs while loading .org file

From: David Dynerman
Subject: [O] Emacs hangs while loading .org file
Date: Wed, 17 Aug 2016 09:19:54 -0700
User-agent: Notmuch/0.21+213~g999d473 (https://notmuchmail.org) Emacs/ (x86_64-apple-darwin15.5.0)

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

Thank you,

[1] https://www.math.berkeley.edu/~dynerman/angular_xcorr.org
[2] https://www.math.berkeley.edu/~dynerman/slow-org-load

reply via email to

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