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 16:25:38 -0300 Message-ID: <20140226192538.GB8037@localhost> References: <20140224223948.GA9224@localhost> <87y50yrm97.fsf@gmail.com> <20140226160613.GA8037@localhost> <87d2i9styt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIk73-0000T6-3r for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 14:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIk6z-0004r7-6L for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 14:25:49 -0500 Received: from merlot.gcoop.coop ([67.208.113.123]:51352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIk6z-0004qz-0T for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 14:25:45 -0500 Received: from localhost (merlot [127.0.0.1]) (Authenticated sender: xuiso@osiux.com.ar) by merlot.gcoop.coop (Postfix) with ESMTPSA id 48DFC148A5B for ; Wed, 26 Feb 2014 16:26:10 -0300 (ART) Content-Disposition: inline In-Reply-To: <87d2i9styt.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 --IiVenqGWf+H9Y6IX 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: > OSiUX writes: >=20 > > El mi=C3=A9, 26 feb 2014, Nicolas Goaziou dec=C3=ADa: >=20 > >> 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= -babel)) >=20 > I forgot a quote: >=20 > (add-hook 'org-export-before-processing-hook #'my-toggle-off-babel)) oops! OK thanks, now it works great! > > 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 eva= luate 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 :-( >=20 > No, this patch is about calling icalendar exporter on the agenda. > I guess you are calling it on an Org buffer, which is different. No problem, I use batch mode export: ORG -> ICS -> REM -> TXT https://github.com/osiris/org-bash-utils/blob/master/agenda-ascii > Regards, thank you! --=20 :: 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 --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTDj+yAAoJELMIpnGSN9NsuAAP/R5RzfRofX7dFYrFOuuUYLeM q1EW7wo4PW6/iCnaEF6x0/weiFY6SG2PIgUrobHUWGK6ClYLU/eefctrHUnsb4cH +QrPHgltJBRwC/kqjGjInBW1KjxmfrE8XUuRoGPSNoU0WOa+eSKCqQ7NqVYNrF5k fuO5ETf/8N8XpNRA40BiOxXgtGmToSJLIGK9njYjFooqnv2U6EvaQ3E7p0dw0h1h 3wjLHDoCVG0sVJH4L+lktsnliXkkhAoCAEymOTIOEfEdxbO0MtZwRwU1DHsPRG6D AKQNqLYosW5cAYAOW3NzxtMgCI+ymnFOeczOPqHMZHzfZHpf0a9nEAcqf/6bK7Le z3yewECvAJ4KxbWjQAJmALkkJ/raMtGUrI2qQdwEqxV0UpnM4l1lAGzTosqxcBIA 9wL5Xh1QW6gnENy8jY5IGTLOBEnZ4HX9uakpUqQhX98TQYLQrF0uRsEuhvjmivJ1 XhbXKWSyPlLOdBSUxngJyefYe6AXJhEmf+BG1B8STNQGHY/9ymfjcrBqP9wZwvaU e9ViUg/n0ckaW9uBTtHaC+oIW43AjWeHez4hY+8uPL8kDIV+aSTIGaIukSg4dreo Yl0HLawsqlYV3bOYjbuG54sr9/FA4Lt9Rxue/Y4v8YaVLaH0He0lRFfSRhP42iYU rtRkCae1HbZVa134OOJE =+V94 -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--