From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Error when running org-babel-tangle Date: Thu, 5 Mar 2015 20:13:12 -0800 Message-ID: <216901EF-0178-4FD1-A94D-CDC8CAAD62A5@haas.berkeley.edu> References: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTjdi-0003Yl-BE for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 23:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTjdf-0004qj-5R for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 23:13:30 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:41414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTjdf-0004q9-0L for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 23:13:27 -0500 Received: by pdjy10 with SMTP id y10so2119730pdj.8 for ; Thu, 05 Mar 2015 20:13:25 -0800 (PST) In-Reply-To: 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: "Charles C. Berry" Cc: emacs-orgmode@gnu.org Aha! Thanks, Chuck. > On Mar 5, 2015, at 5:08 PM, Charles C. Berry wrote: >=20 > On Thu, 5 Mar 2015, Richard Stanton wrote: >=20 >> I=E2=80=99m experimenting with tangling files in org-mode, and have = found >> that certain files cause org-babel-tangle to ie with an error >> (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here=E2=80=99s= a >> small example: >=20 >>=20 >> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94 >>=20 >> * Sample code >>=20 >> #+BEGIN_SRC makefile :tangle makefile-main >> circle: >> @gfortran -c circle.f90 >>=20 >> main: circle >> @gfortran -c main.f90 >> @gfortran circle.o main.o -o main >>=20 >> clean: >> @rm -f *.o main >> #+END_SRC >>=20 >> Run this block to tangle out the new files. >>=20 >> #+BEGIN_SRC emacs-lisp >> (org-babel-tangle) >> #+END_SRC >>=20 >> #+RESULTS: >> | makefile-main | >>=20 >> In this block I use this header: >> #+BEGIN_EXAMPLE >> #+BEGIN_SRC sh :results raw >> #+END_EXAMPLE >>=20 >=20 > [rest deleted] >=20 > =3D=3D=3D >=20 > #+BEGIN_EXAMPLE > ,#+BEGIN_SRC sh :results raw #+END_EXAMPLE >=20 > will work. The comma is stripped on export. >=20 > If you use org-edit-src (C-c C-c) on your original example block, it > will format it in that way automagically. >=20 > HTH, >=20 > Chuck