emacs-orgmode
[Top][All Lists]
Advanced

[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 16:25:38 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

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

> OSiUX <address@hidden> 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 <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 :-(
> 
> 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) 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]