El mié, 26 feb 2014, Nicolas Goaziou decía: > 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-babel)) 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 :-( -- :: 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