El mié, 26 feb 2014, Nicolas Goaziou decía: > OSiUX writes: > > > El mié, 26 feb 2014, Nicolas Goaziou decía: > > >> 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)) > > I forgot a quote: > > (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 evaluate 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 :-( > > 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! -- :: 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