From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Error with :wrap org in babel and 8.0-pre Date: Mon, 15 Apr 2013 22:15:44 +0200 Message-ID: <87txn7y2hb.fsf@gmail.com> References: <87li8ncqzq.fsf@gmail.com> <87li8jfysj.fsf@gmail.com> <87y5cjy3du.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URpoc-0005Hq-Qq for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 16:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URpob-0002wP-Cx for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 16:15:50 -0400 Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]:58351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URpoa-0002wG-TH for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 16:15:49 -0400 Received: by mail-ea0-f179.google.com with SMTP id f15so2346829eak.38 for ; Mon, 15 Apr 2013 13:15:48 -0700 (PDT) In-Reply-To: (John Hendy's message of "Mon, 15 Apr 2013 15:05:49 -0500") 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: John Hendy Cc: emacs-orgmode , Eric Schulte John Hendy writes: > On Mon, Apr 15, 2013 at 2:56 PM, Nicolas Goaziou wrote: >> Hello, >> >> John Hendy writes: >> >>> #+RESULTS: >>> #+BEGIN_org >>> With the assumption of 100 lbs. of input material 1 and 200 lbs. of material 2, >>> we can produce the following number of widgets based on injection mold >>> wall thicknesses. >>> | wall | vals | widgets | >>> |-------+------+----------| >>> | 5 mil | 0.01 | 40000.00 | >>> | 6 mil | 0.01 | 33333.00 | >>> | 8 mil | 0.01 | 25000.00 | >>> #+END_org >> >> This is wrong. We discussed it months ago on this ML and, IIRC, Babel >> should produce "#+begin_src org" blocks, not "#+begin_org". Org >> documentation specifies it too. >> > > "Wrong," as in =:wrap org= behavior is currently a bug? Or "wrong" in > that for my given use case, I shouldn't be using =:wrap org=? Wrong as is "the current behaviour is a bug". It is expected to produce "#+begin_src org" blocks. Its use case is to generate dead data: #+begin_src org ,#+AUTHOR: test #+end_src In that case, the #+AUTHOR keyword isn't applied to current set-up. On the other hand, if you want to generate live data, use "drawer": #+results: :RESULTS: #+AUTHOR: test :END: In this example, the keyword is really installed in the buffer. Regards, -- Nicolas Goaziou