I'd like to be able to export agendas as org-mode files, so that I can use the agenda system's ability to make subsets of my tasks, then sync those with Google tasks using michel-orgmode (so I don't end up with hundreds of tasks to look through on my phone, but only the ones with tags such as :soon: etc).  Is there an existing command for this?  I've tried the manual, the wiki and the function names in the code, and nothing looks like it will do this.  I don't mind writing it myself, I'm quite familiar with emacs-lisp, but I'd rather pick up anything existing if there is one.

__John