From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Error when running org-babel-tangle Date: Thu, 5 Mar 2015 14:50:04 -0800 Message-ID: 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]:44815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTeaq-0004De-Sq for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 17:50:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTean-0001BQ-LM for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 17:50:12 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:40528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTean-0001Aj-GS for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 17:50:09 -0500 Received: by pdbfp1 with SMTP id fp1so32750690pdb.7 for ; Thu, 05 Mar 2015 14:50:07 -0800 (PST) Received: from [10.0.1.2] (mortgage.Haas.Berkeley.EDU. [128.32.75.82]) by mx.google.com with ESMTPSA id fh1sm7831117pbb.70.2015.03.05.14.50.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Mar 2015 14:50:06 -0800 (PST) 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: emacs-orgmode@gnu.org I=E2=80=99m experimenting with tangling files in org-mode, and have = found that certain files cause org-babel-tangle to die with an error = (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here=E2=80=99s = a small example: =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 * 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=20 #+END_EXAMPLE #+BEGIN_SRC sh :results raw replace make -f makefile-main clean main ./main #+END_SRC =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 When I run org-babel-tangle on this file (or press C-c C-c in the = emacs-lisp block), I get the following error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("-l \"\\(.+\\)\"" nil) org-babel-tangle-single-block(5) org-babel-tangle-collect-blocks(nil nil) org-babel-tangle() (progn (org-babel-tangle)) eval((progn (org-babel-tangle))) org-babel-execute:emacs-lisp("(org-babel-tangle)" ((:comments . "") = (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle = . "no") (:exports . "code") (:results . "replace") (:session . "none") = (:hlines . "no") (:result-type . value) (:result-params "replace") = (:rowname-names) (:colname-names))) org-babel-execute-src-block(nil) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) Any ideas what=E2=80=99s going on? If I delete either of the two blocks = at the bottom of the file (the EXAMPLE block or the final SRC block), it = works fine. Thanks. Richard Stanton