[O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Alan Schmitt
Hello, I'm playing with manipulating some data in org-mode format from the command line (OK, I admit that I'm playing with acme). I'm wondering if there is a tool, or a way to call emacs, to do the following: - get some data in org-mode format from stdin - nicely format the text - spit the

Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Bastien
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: Do you have tools or an approach using emacs (as a command line tool) to suggest? I would call emacs in batch mode, applying some Elisp code to fill each element. See `org-forward-element' and `org-fill-paragraph'. HTH, --

Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Alan Schmitt
Bastien b...@gnu.org writes: Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: Do you have tools or an approach using emacs (as a command line tool) to suggest? I would call emacs in batch mode, applying some Elisp code to fill each element. See `org-forward-element' and

Re: [O] can I fill-paragraph some org data from the command line?

2014-03-12 Thread Bastien
Alan Schmitt alan.schm...@polytechnique.org writes: Here is the code, if it's helpful to others. Thanks for sharing this! -- Bastien