Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Too large file for Org-mode?

117 views
Skip to first unread message

twik...@gmail.com

unread,
Nov 11, 2012, 7:42:36 AM11/11/12
to
I have a very large file org-mode with more than 5000 lines
The file is structured with a heading and many lines that constitute a list:

* ONE HEAD
- yyyy
- bbbb
- cccc
- ....
- ....
- zzzz

When I try to export to HTML file that Emacs is virtually crash ... continues processing without ending

The file is too big? There are limits to the exported file?
Suggestions?

Jambunathan K

unread,
Nov 11, 2012, 10:38:20 AM11/11/12
to twik...@gmail.com, help-gn...@gnu.org

Please move this question to Orgmode mailing list.

http://lists.gnu.org/archive/html/emacs-orgmode/
http://thread.gmane.org/gmane.emacs.orgmode/

I would assume that a 5000 line file is not really a big file.

The problem could be elsewhere. You need to atleast say what version of
Orgmode you are using and whether you could reproduce the issue with
emacs -Q.
--

Jude DaShiell

unread,
Nov 11, 2012, 11:32:01 AM11/11/12
to twik...@gmail.com, help-gn...@gnu.org
You are living dangerously. One good piece of malware gets into that
file and you've lost all of your work. Since I have a background in
structured programming if I inherited that file, I'd separate it into
pieces that could be logically justified and back up each file in a
version control system before doing any additional work then use the
back up system to update files in that back up hierarchy. You can make
a file with #+INCLUDE directives in it to attach all of those smaller
files together for export purposes and the order of the includes
determines the order the smaller files get exported. The people that
wrote org-mode were seriously smart when they put this feature in.
Probably it is something you can read about in the limitations section
of the org-mode manual too.
---------------------------------------------------------------------------
jude <jdas...@shellworld.net>
Adobe fiend for failing to Flash



Bastien

unread,
Nov 12, 2012, 11:03:43 PM11/12/12
to twik...@gmail.com, help-gn...@gnu.org
twik...@gmail.com writes:

> When I try to export to HTML file that Emacs is virtually crash
> ... continues processing without ending

Beside Jambunathan's suggestion, which I support,
you can instrument the org-html.el exporter like this:

M-x elp-instrument-package RET org-html-

Then try to export the .org file to HTML, C-g if needed,
then M-x elp-results RET will provide some information
on the time spent by the exporter's function. Maybe
on of them is buggy and will take too much time.

HTH,

--
Bastien

Stefan Monnier

unread,
Nov 14, 2012, 11:21:56 AM11/14/12
to
> Then try to export the .org file to HTML, C-g if needed,
> then M-x elp-results RET will provide some information
> on the time spent by the exporter's function. Maybe
> on of them is buggy and will take too much time.

And with Emacs-24.3 you can use M-x profiler-start RET instead (which
works differently, so it has its advantages and disadvantages: among the
advantages there's the fact that it will report data even on functions
which were interrupted by C-g before then finished, and the fact that
you don't need to specify (via elp-instrument) which functions you want
to profile).


Stefan

Bastien

unread,
Nov 23, 2012, 5:03:25 AM11/23/12
to Stefan Monnier, help-gn...@gnu.org
I just tested M-x profiler-start RET - great!

I'm surprised there is no profiler-stop, but maybe that does not
make sense? I'm not familiar with anything regarding profiling.

--
Bastien

Stefan Monnier

unread,
Nov 23, 2012, 9:32:06 AM11/23/12
to Bastien, help-gn...@gnu.org
> I'm surprised there is no profiler-stop, but maybe that does not
> make sense?

There sure is a M-x profiler-stop.


Stefan

Bastien

unread,
Nov 23, 2012, 11:35:54 AM11/23/12
to Stefan Monnier, help-gn...@gnu.org
Er, yes, I checked *before* running M-x profiler-start.

Thanks!

--
Bastien

0 new messages