From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [babel] Painless integration of source blocks with language Date: Mon, 17 Jan 2011 09:18:56 -0700 Message-ID: <87oc7fjy4n.fsf@gmail.com> 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> <80y66jvpwz.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=49682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Perth-0007gI-AG for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 11:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pertg-0008Uw-2F for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 11:25:37 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:43488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pertf-0008Up-Vx for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 11:25:36 -0500 Received: by ywj3 with SMTP id 3so2023149ywj.0 for ; Mon, 17 Jan 2011 08:25:35 -0800 (PST) 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> I've just pushed up a new header argument combination ":comments noweb" >> which will wrap all embedded noweb sections in link comments, as >> demonstrated in the following example. Hopefully this should be >> sufficient for a complete mapping from a pure code file back to the >> original org-mode file. > > If I understand correctly, this is some sort of enhancement to the ":comm= ents > yes" option. > > If yes, is there a reason to have both values, with subtle differences? > Shouldn't we port the behavior of ":comments noweb" to the ":comments yes" > value? > Yes, the reason to retain both variants is that in the case of short noweb references embedded in a single line, e.g. #+source: first #+begin_src ruby 5 #+end_src #+begin_src ruby :noweb yes <> + 6 #+end_src the yes option would be preferable, as the insertion of comments around the noweb reference would result in adding line breaks around the reference and possibly breaking new-line sensitive code. Cheers -- Eric > > Best regards, > Seb