From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seth Burleigh Subject: Re: [babel] Painless integration of source blocks with language Date: Mon, 17 Jan 2011 16:15:47 -0600 Message-ID: References: <87lj2ukfia.fsf@gmail.com> <87k4icegwl.fsf@ucl.ac.uk> <87wrmbwdsm.fsf@gmail.com> <87aaj5tbgl.fsf@ucl.ac.uk> <87bp3ka458.fsf@gmail.com> <87hbd8kgqw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1247723550==" Return-path: Received: from [140.186.70.92] (port=50101 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PexMc-00071q-In for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:15:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PexMb-00007g-Ag for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:15:50 -0500 Received: from mail-iw0-f195.google.com ([209.85.214.195]:64144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PexMb-00007H-66 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 17:15:49 -0500 Received: by iwn41 with SMTP id 41so1872218iwn.6 for ; Mon, 17 Jan 2011 14:15:47 -0800 (PST) In-Reply-To: <87hbd8kgqw.fsf@gmail.com> 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 Schulte Cc: emacs-orgmode@gnu.org --===============1247723550== Content-Type: multipart/alternative; boundary=001485e7e9483e1e74049a1220e4 --001485e7e9483e1e74049a1220e4 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte wrote: > > #+source: wrappable > #+begin_src emacs-lisp > (setq x (+ 4 x)) > #+end_src > > #+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes > (let ((x 1)) > (message "x=%s" x) > <> > (message "x=%s" x)) > #+end_src > > which tangles out the following emacs-lisp > #+begin_src emacs-lisp > ;; [[file:~/src/babel-dev/scraps.org: > :*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]] > (let ((x 1)) > (message "x=%s" x) > ;; [[file:~/src/babel-dev/scraps.org: > :*wrap%20noweb%20references%20in%20comments][wrappable]] > (setq x (+ 4 x)) > ;; wrappable ends here > (message "x=%s" x)) > ;; wrap-noweb-references-in-comments:2 ends here > #+end_src > > Cheers -- Eric > Cool! Does it yet support detangling? I tried it out and it said i wasnt in a tangle code. --001485e7e9483e1e74049a1220e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Jan 16, 2011 at 9:31 AM, Eric Sc= hulte <schul= te.eric@gmail.com> wrote:

#+source: wrappable
#+begin_src emacs-lisp
=A0(setq x (+ 4 x))
#+end_src

#+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes
=A0(let ((x 1))
=A0 =A0(message "x=3D%s" x)
=A0 =A0<<wrappable>>
=A0 =A0(message "x=3D%s" x))
#+end_src

which tangles out the following emacs-lisp
#+begin_src emacs-lisp
=A0;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%2= 0comments][wrap-noweb-references-in-comments:2]]
=A0(let ((x 1))
=A0 =A0(message "x=3D%s" x)
=A0 =A0;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20= in%20comments][wrappable]]
=A0 =A0(setq x (+ 4 x))
=A0 =A0;; wrappable ends here
=A0 =A0(message "x=3D%s" x))
=A0;; wrap-noweb-references-in-comments:2 ends here
#+end_src

Cheers -- Eric


Cool! Does it yet support detang= ling? I tried it out and it said i wasnt in a tangle code.

--001485e7e9483e1e74049a1220e4-- --===============1247723550== 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 --===============1247723550==--