From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: export ICal without evaluate code block Date: Wed, 26 Feb 2014 15:17:56 +0100 Message-ID: <87y50yrm97.fsf@gmail.com> References: <20140224223948.GA9224@localhost> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIfIp-0003HA-8q for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 09:17:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIfIj-0007Ou-Tl for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 09:17:39 -0500 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:50383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIfIj-0007Ok-M8 for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 09:17:33 -0500 Received: by mail-wi0-f171.google.com with SMTP id cc10so5933180wib.10 for ; Wed, 26 Feb 2014 06:17:32 -0800 (PST) In-Reply-To: <20140224223948.GA9224@localhost> (OSiUX's message of "Mon, 24 Feb 2014 19:39:48 -0300") 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: OSiUX Cc: emacs-orgmode@gnu.org Hello, OSiUX writes: > Calendar can be exported without evaluating > babel code blocks? > > I try setting in .emacs: > > (setq org-confirm-babel-evaluate nil) > (setq org-export-babel-evaluate nil) > > but always evaluate when exports iCalendar :-( You could use something like this: (defun my-toggle-off-babel (backend) (when (org-export-derived-backend-p backend 'icalendar) (org-set-local 'org-confirm-babel-evaluate nil) (org-set-local 'org-export-babel-evaluate nil))) (add-hook org-export-before-processing-hook #'my-toggle-off-babel) Regards, -- Nicolas Goaziou