[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export ICal without evaluate code block

From: OSiUX
Subject: Re: [O] export ICal without evaluate code block
Date: Wed, 26 Feb 2014 13:06:14 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

El mié, 26 feb 2014, Nicolas Goaziou decía:

> Hello,
> OSiUX <address@hidden> 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 <address@hidden>
  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) address@hidden
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]