From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [BUG] in org-element-link-parser (lilypond file does not export to latex) Date: Sat, 01 Mar 2014 10:12:28 +0100 Message-ID: <87k3ce470j.fsf@gmail.com> References: <87zjlad8ei.fsf@gmail.com> <87zjlapc38.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJfxX-0004nE-FX for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 04:11:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJfxL-0008TY-KO for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 04:11:51 -0500 Received: from plane.gmane.org ([80.91.229.3]:43239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJfxL-0008T9-Dj for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 04:11:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WJfxK-0002on-4a for emacs-orgmode@gnu.org; Sat, 01 Mar 2014 10:11:38 +0100 Received: from e178063227.adsl.alicedsl.de ([85.178.63.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2014 10:11:38 +0100 Received: from tjolitz by e178063227.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2014 10:11:38 +0100 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 Nicolas Goaziou writes: Hello, > Thorsten Jolitz writes: > >> when trying to export this example lilypond file >> >> https://raw.github.com/mjago/ob-lilypond/master/examples/basic-mode/pdf-example/pdf-example.org >> >> to LaTeX (C-c C-e l L) I hit the following error: >> >> ,---------------------------------------------- >> | Wrong type argument: integer-or-marker-p, nil >> `---------------------------------------------- > > I cannot reproduce it. OTOH, I don't have Lilypond installed. > >> It turns out that org-element tries to parse a link but >> >> ,---------------------------------- >> | (defun org-element-link-parser () >> | "Parse link at point. >> `---------------------------------- > > Could you provide an ECM, that is the exact link generating this error? This is the first code block of the original .org file with one link (that could not be exported really, because it was evaluated on another machine so the eps did not really exist on my machine. But the org parser choked with this kind of result-links: #+begin_src org #+TITLE: Modes in the Key of C #+DATE: #+OPTIONS: timestamp:nil num:nil toc:nil #+LaTeX_HEADER: \usepackage[cm]{fullpage} * Ionian Mode Lorem ipsum dolor sit amet #+LaTeX: \linebreak #+ATTR_LaTeX: width=17cm #+begin_src lilypond :file ionian.eps :noweb yes <> \relative c' { c d e f g a b c b a g f e d c d e f g a b c b a g f e d c1 } #+end_src #+results[0c21e5c5bd30d880d2bd230aa09b7613c2554835]: [[file:ionian.eps]] #+end_src Here is what I get when I delete the above result link and evaluate the code-block on my machine - this parses and exports fine: #+begin_src org #+TITLE: Modes in the Key of C #+DATE: #+OPTIONS: timestamp:nil num:nil toc:nil #+LaTeX_HEADER: \usepackage[cm]{fullpage} * Ionian Mode Lorem ipsum dolor sit amet #+LaTeX: \linebreak #+ATTR_LaTeX: width=17cm #+begin_src lilypond :file ionian.eps :noweb yes <> \relative c' { c d e f g a b c b a g f e d c d e f g a b c b a g f e d c1 } #+end_src #+results: [[file:ionian.eps]] #+end_src -- cheers, Thorsten