From mboxrd@z Thu Jan 1 00:00:00 1970 From: OSiUX Subject: Re: export ICal without evaluate code block Date: Wed, 26 Feb 2014 13:06:14 -0300 Message-ID: <20140226160613.GA8037@localhost> References: <20140224223948.GA9224@localhost> <87y50yrm97.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIh07-0000Sj-9m for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 11:06:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIh03-0005tB-6S for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 11:06:27 -0500 Received: from merlot.gcoop.coop ([67.208.113.123]:36940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIh03-0005t5-01 for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 11:06:23 -0500 Received: from localhost (merlot [127.0.0.1]) (Authenticated sender: xuiso@osiux.com.ar) by merlot.gcoop.coop (Postfix) with ESMTPSA id 6985D14896F for ; Wed, 26 Feb 2014 13:06:41 -0300 (ART) Content-Disposition: inline In-Reply-To: <87y50yrm97.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: emacs-orgmode@gnu.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El mi=C3=A9, 26 feb 2014, Nicolas Goaziou dec=C3=ADa: > 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) Thanks Nicolas, your workaround don't work for me: Debugger entered--Lisp error: (void-variable org-export-before-processing-hook) (add-hook org-export-before-processing-hook (function my-toggle-off-bab= el)) Looking the source I found this commit: commit 69ebb265be118ea1a37afb9603c4582d25d33d09 Author: Bastien Guerry Date: Wed Apr 10 18:40:47 2013 +0200 ox-icalendar.el (org-icalendar-export-current-agenda): Do not evaluat= e babel co$ * ox-icalendar.el (org-icalendar-export-current-agenda): Do not evaluate babel code blocks. Thanks to Nicolas for directions about this. should work with the export current file option but does not work :-( -- :: Osiris Alejandro Gomez (OSiUX) osiux@osiux.com.ar DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C http://www.osiux.com.ar http://www.altermundi.net --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTDhD1AAoJELMIpnGSN9NsjUYP/3GOvDHYUNnU7mGOsH3vW+dq IXE5pn3pXANXLZzqpOH37/agpV86DwhglYdlVucXDfGbqdHEk4GYkN+XmdZY0Vka C++0gAAzq0y4/UsEfLQ3ie9VkHPLGYEXjY84XJS+nrlM/E9J+eCOURNWGSuekGfq 3V+gxPYqyQ6bSdyWcv7gq77s8cKwwstDmerESfL9WHvs/y8lb8OYq875Crro6BFq d9xw1GqShpG+RegryjtqDGB20U07uTv7oP8jOxU2UuMggiCJDnhCpNe3qk9NUYcu 9nOshimEA/KQNSlb4VHfzwXF/GWAcIQpL5nzckdH5taF/fcE3YNxiFmBiM0H6NM7 SsOYDg5C8d8n0ADq/dkA2ZVULCw/UE8JL9+nVjnTl0Z+7OFa+SY7T/zvkQT+FWsO scN4kVndN3mcAMnA7KcPNBBmOkX/XL2yI4yibVX6nHUlXFcSV4MoqauVGQdNlZ4m gvF+IF0l0XmXEIWp+DQXX/b29Tfrt3KbEcuz78HbGJ4In3K1e1PVjPe9xWybeZtj KPob06DgDqnAx0rzxbapoTMPUzN2ANOmFPLq6JZXkgDZFX8nmcszw+vO5qpb1YHN 2wDv5VP+FAryIhuStQbG9XYeew6b/TDULGG7x9vtNCwdAtrzgec+RG5uEDWW/pUO Q0aQ3dc0PLbsgbYr5KQM =w6Xy -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--