From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Error with :wrap org in babel and 8.0-pre Date: Mon, 15 Apr 2013 16:38:42 -0500 Message-ID: References: <87li8ncqzq.fsf@gmail.com> <87li8jfysj.fsf@gmail.com> <86bo9fmv84.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URr6q-0004TK-L6 for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 17:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URr6p-0004wb-Iv for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 17:38:44 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:37819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URr6p-0004wQ-As for emacs-orgmode@gnu.org; Mon, 15 Apr 2013 17:38:43 -0400 Received: by mail-la0-f49.google.com with SMTP id fs12so4806538lab.36 for ; Mon, 15 Apr 2013 14:38:42 -0700 (PDT) In-Reply-To: <86bo9fmv84.fsf@somewhere.org> 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: Sebastien Vauban Cc: emacs-orgmode On Mon, Apr 15, 2013 at 2:47 PM, Sebastien Vauban wrote: > Dear Eric, > > Eric Schulte wrote: >> John Hendy writes: >>> On Fri, Apr 12, 2013 at 5:24 PM, Eric Schulte wrote: >>>> John Hendy writes: >> >> Use :wrap org if your code block produces raw org. E.g., >> >> #+begin_src sh :results output :wrap org >> cat <> | a | b | >> |---+---| >> | 1 | 2 | >> EOF >> #+end_src >> >> #+RESULTS: >> #+BEGIN_org >> | a | b | >> |---+---| >> | 1 | 2 | >> #+END_org > > Playing a bit with the above code, removing `:results output' to see what > would happen, I'm amazed by the results: > > #+begin_src sh :wrap org > cat < | a | b | > |---+---| > | 1 | 2 | > EOF > #+end_src > > #+results: > #+BEGIN_org > | | | a | | | b | | > | | ---+--- | | | | | | > | | | 1 | | | 2 | | > #+END_org > > Is it expected? Seems so: http://orgmode.org/worg/org-contrib/babel/header-args.html That's the example from that page and without adding =verbatim= to the list of =:results= args, it does that. As a similar inquiry to behavior, what is the expected output of simply: #+begin_results stuff #+end_results If I use :wrap with no arguments, I get blocks like that, and the same LaTeX error as I do for =:wrap org= (even though I know I shouldn't use that). Just curious what the use-case would be for :wrap with no args? ! LaTeX Error: Environment results undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.33 \begin{results} (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/wasysym/uwasy.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/base/ulasy.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd) (/home/jwhendy/.texlive/2012/texmf-dist/tex/latex/amsfonts/umsb.fd) ! LaTeX Error: \begin{document} ended by \end{results}. Best regards, John > > Best regards, > Seb > > -- > Sebastien Vauban > >