From: OSiUX <xuiso@osiux.com.ar>
To: emacs-orgmode@gnu.org
Subject: Re: export ICal without evaluate code block
Date: Wed, 26 Feb 2014 16:25:38 -0300 [thread overview]
Message-ID: <20140226192538.GB8037@localhost> (raw)
In-Reply-To: <87d2i9styt.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1942 bytes --]
El mié, 26 feb 2014, Nicolas Goaziou decía:
> OSiUX <xuiso@osiux.com.ar> 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 <bzg@altern.org>
> > 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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-02-26 19:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 22:39 export ICal without evaluate code block OSiUX
2014-02-26 14:17 ` Nicolas Goaziou
2014-02-26 16:06 ` OSiUX
2014-02-26 16:46 ` Nicolas Goaziou
2014-02-26 19:25 ` OSiUX [this message]
2014-02-26 20:00 ` Simon Thum
2014-02-26 21:21 ` Nicolas Goaziou
2014-03-03 21:02 ` Simon Thum
2014-03-13 15:42 ` Bastien
2014-03-17 15:16 ` Simon Thum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140226192538.GB8037@localhost \
--to=xuiso@osiux.com.ar \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).