[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Re: org-src-fontify-natively makes things very, very slow
From: |
Eric S Fraga |
Subject: |
Re: [O] Re: org-src-fontify-natively makes things very, very slow |
Date: |
Fri, 18 Mar 2011 08:38:09 +0000 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
Sébastien Vauban <address@hidden> writes:
[...]
> Maybe this is (partly?) due to the overlay I added:
>
> #+begin_src emacs-lisp
> (overlay-put (make-overlay beg1 block-end)
> 'face 'org-block-background))
> #+end_src
This could indeed be one cause, especially depending on what this does
when there is no block-end line, or at least not anywhere near in the
buffer. I seem to get a slowdown when I have a situation like this:
#+begin_example
[... some text ...]
#+begin_src somelanguage
[... text which is part of the source block...]
<point here>
[... lots of other text ...]
[... including other source blocks]
#+end_example
where there is no matching #+end_src or, more precisely, the
next #+end_src line is one that does not belong to this current source
block. Your search (in org.el) for the end of the block assumes that it
does have the end statement in place already. I'm not sure how to fix
this because it's an ill-defined situation.
It may be worthwhile making the overlay optional? Although I must admit
that I like it!
My solution, by the way, is to insert the #+end_src line immediately
upon writing a #+begin_src line and then back up a line to start writing
the code.
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.77.g74268)
- [O] org-src-fontify-natively makes things very, very slow, Julian Burgos, 2011/03/17
- Re: [O] org-src-fontify-natively makes things very, very slow, Eric S Fraga, 2011/03/17
- [O] Re: org-src-fontify-natively makes things very, very slow, Sébastien Vauban, 2011/03/17
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Julian Burgos, 2011/03/17
- Re: [O] Re: org-src-fontify-natively makes things very, very slow,
Eric S Fraga <=
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Julian Burgos, 2011/03/18
- [O] Re: org-src-fontify-natively makes things very, very slow, Sébastien Vauban, 2011/03/19
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, suvayu ali, 2011/03/19
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Eric S Fraga, 2011/03/19
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Eric S Fraga, 2011/03/19
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Le Wang, 2011/03/20
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Eric S Fraga, 2011/03/20
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Le Wang, 2011/03/20
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Eric Schulte, 2011/03/21
- Re: [O] Re: org-src-fontify-natively makes things very, very slow, Eric S Fraga, 2011/03/21