From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Illiterate programming question Date: Thu, 31 Mar 2011 00:45:00 +0200 Message-ID: <80vcz0w7mb.fsf@somewhere.org> References: <4D93935B.1020402@sift.info> <8766.1301520804@alphaville.usa.hp.com> <4D93A425.9070604@sift.info> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Robert, Robert Goldman wrote: > On 3/30/11 Mar 30 -4:33 PM, Nick Dokos wrote: >> Robert Goldman wrote: >>=20 >>> I would like to do the opposite of literate programming (hence the >>> subject line!): >>> >>> I would like to pull into my org file snippets from a code file. I know >>> that org-mode will let me import /entire/ source code files. Is there >>> some way to say "Import the region of this file between these two >>> delimiters?" >>> >>> If not, do you think it would be hard to add this feature? I already >>> have the snappy name, after all! >>=20 >> I don't really understand: can't you cut and paste? > > Yes, but if I cut and paste the text of the code that I am describing > may change out from under my text. If I import the code, it stays in > sync (at least when the document is exported). > > Honestly, I was tempted to do the literate programming thing with babel, > but was concerned that it might not work well as a multiple-author thing > (I would be writing the document, but someone else might be modifying > the code and might find org-babel confusing). Not a problem: your colleagues edit the tangled file, and you untangle it on demand (iff delimiter comments haven't been touched). Best regards, Seb --=20 S=C3=A9bastien Vauban