From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Maihofer Subject: Re: How to export property values of agenda selection? Date: Sat, 6 Apr 2013 12:48:18 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOYWx-0001kx-6q for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 15:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOYWu-00057W-Ve for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 15:12:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:39156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOYWu-00057Q-OD for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 15:12:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UOYQk-0004qq-0w for emacs-orgmode@gnu.org; Sat, 06 Apr 2013 21:05:38 +0200 Received: from ip-62-143-60-131.unitymediagroup.de ([62.143.60.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Apr 2013 21:05:37 +0200 Received: from ignoramus by ip-62-143-60-131.unitymediagroup.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Apr 2013 21:05:37 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Christian Moe 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 mayer.com,karl 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