From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seth Burleigh Subject: Re: [babel] Painless integration of source blocks with language Date: Thu, 13 Jan 2011 09:23:12 -0600 Message-ID: References: <87lj2ukfia.fsf@gmail.com> <87k4icegwl.fsf@ucl.ac.uk> <87wrmbwdsm.fsf@gmail.com> <87aaj5tbgl.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0255338606==" Return-path: Received: from [140.186.70.92] (port=56856 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdP19-00060c-Py for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 10:23:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdP18-0007FT-8j for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 10:23:15 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:63807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdP18-0007FH-52 for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 10:23:14 -0500 Received: by iwn40 with SMTP id 40so1786307iwn.0 for ; Thu, 13 Jan 2011 07:23:12 -0800 (PST) In-Reply-To: <87aaj5tbgl.fsf@ucl.ac.uk> 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org --===============0255338606== Content-Type: multipart/alternative; boundary=00221534d4cf5923f90499bbe559 --00221534d4cf5923f90499bbe559 Content-Type: text/plain; charset=ISO-8859-1 I would just like to throw in a quick idea. The easiest way to support noweb tangling is to get org-babel-tangle to create nested tags and change detangle to take these into account. for example, i have the forex_user source block that is tangled. ;; [[file:~/Dropbox/.rep/clj-forex/clj-forex.org::*User][forex_user]] my code... ;; [[file:~/Dropbox/.rep/clj-forex/clj-forex.org::*User][embedded_block]] my embedded code ... ;; embedded_block ends here ;; forex_user ends here corresponding to a forex_user block of #+begin_src my code ... <> #+end_src This would only work for noweb on separate lines and preferably only when one block is noweb embedded into one other source block, but i believe that this is the most common case anyways. This could be enforced in the detangle/tangle code. Then, a separate minor mode could make these file: markers invisible and create a colored overlay pattern per source block code. Saving the file would still save the markers, you just wouldnt see them if the minor mode was on. --00221534d4cf5923f90499bbe559 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I would just like to throw in a quick idea.
The easiest way to support = noweb tangling is to get org-babel-tangle to create nested tags and change = detangle to take these into account.

for example, = i have the forex_user source block that is tangled.

;; [[file:~/Dropbox/.rep/clj-forex/clj-forex.org::= *User][forex_user]]
my code...
;; [[file:~/D= ropbox/.rep/clj-forex/clj-forex.org::*User][embedded_block]]
my embedded code ...
;; embedded_block ends here
= ;; forex_user ends here

corresponding to a forex_u= ser block of=A0
#+begin_src
=A0=A0my code ...
=A0=A0<<embedded_block>>
#+end_src

This would only work for noweb on s= eparate lines and preferably only when one block is noweb embedded into one= other source block, but i believe that this is the most common case anyway= s. This could be enforced in the detangle/tangle code.

Then, a separate minor mode could make these file: mark= ers invisible and create a colored overlay pattern per source block code. S= aving the file would still save the markers, you just wouldnt see them if t= he minor mode was on.
--00221534d4cf5923f90499bbe559-- --===============0255338606== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0255338606==--