From: Karl Maihofer <ignoramus@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: How to export property values of agenda selection?
Date: Sat, 6 Apr 2013 12:48:18 +0000 (UTC) [thread overview]
Message-ID: <loom.20130406T143916-735@post.gmane.org> (raw)
In-Reply-To: m238vhn581.fsf@christianmoe.com
Christian Moe <mail <at> christianmoe.com> writes:
> I don't know how to do it from the agenda selection, but here's a pretty
> simple way to do it in the document buffer using Babel:
>
> #+NAME: list2csv
> #+BEGIN_SRC emacs-lisp :var match="topic2"
> (mapconcat 'identity
> (org-map-entries
> '(org-entry-get (point) "EMAIL")
> match nil)
> ",")
> #+END_SRC
>
> Now you can use a CALL line with a tags match as a parameter, like
>
> #+CALL: list2csv(match="topic2")
>
> to get
>
> #+RESULTS: list2csv(match="topic2")
> : peter <at> mayer.com,karl <at> august.com
Does anybody know how to get the results via Emacs batch mode on the command
line? I'd like to embed the results in a webpage.
The following is my starting point and of course terribly wrong and it
doesn't work. It's hard for me to find documentation (that I understand).
$ emacs -batch -l ~/.emacs -eval (progn
(find-file \"~/test.org\")
(org-babel-execute-src-block 'list2csv)
(kill-buffer))"
Thanks,
Karl
next prev parent reply other threads:[~2013-04-06 19:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 17:51 How to export property values of agenda selection? Karl Maihofer
2013-03-26 22:53 ` Christian Moe
2013-03-27 18:08 ` Karl Maihofer
2013-04-06 12:48 ` Karl Maihofer [this message]
2013-04-07 7:06 ` Christian Moe
2013-04-08 9:00 ` Karl Maihofer
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=loom.20130406T143916-735@post.gmane.org \
--to=ignoramus@gmx.de \
--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).