From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Opening an Org file slowed down Date: Mon, 25 Nov 2013 19:45:25 +0100 Message-ID: References: <87r4a7tmo2.fsf@gmail.com> <87wqjxlqaz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl1A2-00062M-Cb for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 13:45:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl1A0-0004Ba-Cc for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 13:45:29 -0500 Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:41344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl1A0-0004BT-4e for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 13:45:28 -0500 Received: by mail-lb0-f171.google.com with SMTP id q8so3623265lbi.30 for ; Mon, 25 Nov 2013 10:45:26 -0800 (PST) In-Reply-To: <87wqjxlqaz.fsf@gmail.com> 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: Nicolas Goaziou Cc: Org Mode Hi Nicolas On Sun, Nov 24, 2013 at 5:25 PM, Nicolas Goaziou wrote: > I didn't look at your code, but can't you `defadvice' `org-mode'? Yes, thank you for the advice to defadvice org-mode (with class "before") to get the same effect like a hook would have at the beginning of turning on org-mode. Preprocessing an Org file becomes substantially faster this way than it was in org-mode-hook. See new version 0.8 of fileconversion: http://orgmode.org/worg/org-hacks.html#fileconversion Michael