From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: Re: org-babel tangling + ascii export Date: Mon, 26 Mar 2012 10:58:53 -0400 Message-ID: References: <87ehsfr2mi.fsf@gmx.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f35c2de4a1a04bc269cde Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCBNv-0000Tl-21 for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCBNo-0002hA-AD for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:59:02 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:55072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCBNo-0002gd-1v for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:58:56 -0400 Received: by vcbfk14 with SMTP id fk14so5521766vcb.0 for ; Mon, 26 Mar 2012 07:58:53 -0700 (PDT) In-Reply-To: <87ehsfr2mi.fsf@gmx.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org --20cf307f35c2de4a1a04bc269cde Content-Type: text/plain; charset=ISO-8859-1 >Yes this is possible, see the "org" argument to the "comment" header argument http://orgmode.org/manual/comments.html. Right, I saw that, but it has the following limitation: >The text is picked from the leading context of the tangled code and is limited by the nearest headline or source block as the case may be. I want all text from the Org file included, not just "leading context up to nearest headline". I also want the hierarchical structure of the included text preserved, as done by ASCII export. (E.g. I want to include high-level documentation and description, as goes at the top of an elisp file, and which can be broken into sections/subsections/etc -- not just local documentation before a given code block). Is that possible? thanks, ilya On Mon, Mar 26, 2012 at 7:22 AM, Eric Schulte wrote: > Yes this is possible, see the "org" argument to the "comment" header > argument http://orgmode.org/manual/comments.html. > > Cheers, > > Ilya Shlyakhter writes: > > > Is it possible to combine org-babel tangling with ASCII export, so that > > the tangled file would have ALL of the Org-file's content > > as comments (preserving indentation etc as the ASCII export does), > > with the code blocks inserted as non-comments? > > > > Basically I want to write the program in literate-programming form in > > Org mode, but be able to export it into an executable form that's > > independent of Org but still has all the information (not just the > > text immediately before each code block). > > > > Thanks for help, > > > > ilya > > > > > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > --20cf307f35c2de4a1a04bc269cde Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >Yes this is possible, see the "org" argument to the "com= ment" header argument http://orgmode.org/manual/comments.html.

Right, I saw that, but it has the following limitation:

>The = text is picked from the leading context of the tangled code and is limited by the nearest headline or source block as the case may be.=20

I want all text from the Org file included, not just "leading = context up to nearest headline".=A0=A0 I also want the hierarchical st= ructure
of the included text preserved, as done by ASCII export.=A0=A0 (= E.g. I want to include high-level documentation and description, as goes at the top of an elisp file, and which can be broken into sections/subsecti= ons/etc -- not just local documentation before a given code block).
Is t= hat possible?

thanks,

ilya


On Mon, Mar 26, 2012 at 7:22 AM, Eric Schulte <eric.schulte@gmx.com> wrote:=
Yes this is possible, see the "org" argument to the "comment= " header
argument http://orgmode.org/manual/comments.html.

Cheers,

Ilya Shlyakhter <ilya_shl@alum.= mit.edu> writes:

> Is it possible to combine org-babel tangling with ASCII export, so tha= t
> the tangled file would have ALL of the Org-file's content
> as comments (preserving indentation etc as the ASCII export does),
> with the code blocks inserted as non-comments?
>
> Basically I want to write the program in literate-programming form in<= br> > Org mode, but be able to export it into an executable form that's<= br> > independent of Org but still has all the information (not just the
> text immediately before each code block).
>
> Thanks for help,
>
> ilya
>
>

--
Eric Schulte
http://cs.unm.= edu/~eschulte/

--20cf307f35c2de4a1a04bc269cde--