emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Error when running org-babel-tangle


From: Charles C. Berry
Subject: Re: [O] Error when running org-babel-tangle
Date: Thu, 5 Mar 2015 18:31:51 -0800
User-agent: Alpine 2.00 (OSX 1167 2008-08-23)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]