From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViKFU-0002L4-Bm for emacs-orgmode@gnu.org; Mon, 18 Nov 2013 03:32:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViKFT-0002UE-6l for emacs-orgmode@gnu.org; Mon, 18 Nov 2013 03:32:00 -0500 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:64400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViKFS-0002U8-VU for emacs-orgmode@gnu.org; Mon, 18 Nov 2013 03:31:59 -0500 Received: by mail-we0-f173.google.com with SMTP id u56so5822435wes.18 for ; Mon, 18 Nov 2013 00:31:57 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org mode 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