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 18:31:51 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-471925642-1425609112=:1906" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTi3R-0008Tm-FI for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:31:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTi3O-00085r-5U for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:31:57 -0500 Received: from iport-acv4-out.ucsd.edu ([132.239.0.7]:48762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTi3N-00085W-Sw for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:31:54 -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-471925642-1425609112=:1906 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 5 Mar 2015, Charles C. Berry wrote: > 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. Whoops! Make that =C-c ' C-c '= or (org-edit-src) followed by (org-edit-src-exit). Chuck --0-471925642-1425609112=:1906--