OSiUX <[email protected]> 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))
> Looking the source I found this commit:
>
> commit 69ebb265be118ea1a37afb9603c4582d25d33d09
> Author: Bastien Guerry <[email protected]>
> 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.
Regards,
--
Nicolas Goaziou