emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Oleh <ohwoeowho@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Is it possible to delay org-babel fontification if the source block isn't visible?
Date: Mon, 18 Nov 2013 09:31:57 +0100	[thread overview]
Message-ID: <CAA01p3pQXJ+a=ennaeKTtvi3oe2gDUU2yPQw-da6wiGA0ABKZg@mail.gmail.com> (raw)

Hi all,

I'm using (setq org-src-fontify-natively t) with a file of about 100
source blocks in different languages.
And I'm getting a delay of 1-2s when opening this file.
I'm sure that it's the fontification since when I turn it off, the
opening time is fine.
This file has #+STARTUP: folded, so I'm thinking that there could be
an optimization
that fontifies a source block only when it's visible.
Is this feasible/already implemented?

regards,
Oleh

                 reply	other threads:[~2013-11-18  8:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA01p3pQXJ+a=ennaeKTtvi3oe2gDUU2yPQw-da6wiGA0ABKZg@mail.gmail.com' \
    --to=ohwoeowho@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).