From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Error when running org-babel-tangle Date: Thu, 5 Mar 2015 17:08:00 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1891060271-1425604081=:1846" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTgkM-0001lt-PT for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 20:08:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTgkJ-0006Vb-Jc for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 20:08:10 -0500 Received: from iport-acv4-out.ucsd.edu ([132.239.0.7]:33019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTgkJ-0006Uk-Ac for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 20:08:07 -0500 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: Richard Stanton Cc: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1891060271-1425604081=:1846 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 5 Mar 2015, Richard Stanton wrote: > I’m 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’s a > small example: > > ———————————— > > * Sample code > > #+BEGIN_SRC makefile :tangle makefile-main > circle: > @gfortran -c circle.f90 > > main: circle > @gfortran -c main.f90 > @gfortran circle.o main.o -o main > > clean: > @rm -f *.o main > #+END_SRC > > Run this block to tangle out the new files. > > #+BEGIN_SRC emacs-lisp > (org-babel-tangle) > #+END_SRC > > #+RESULTS: > | makefile-main | > > In this block I use this header: > #+BEGIN_EXAMPLE > #+BEGIN_SRC sh :results raw > #+END_EXAMPLE > [rest deleted] === #+BEGIN_EXAMPLE ,#+BEGIN_SRC sh :results raw #+END_EXAMPLE will work. The comma is stripped on export. If you use org-edit-src (C-c C-c) on your original example block, it will format it in that way automagically. HTH, Chuck --0-1891060271-1425604081=:1846--