From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: org-babel-execute:dot -- why doesn't this work? Date: Thu, 24 Sep 2015 08:46:49 -0400 Message-ID: References: <87mvwc1n62.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01538ab6e9238405207d9f79 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf5vL-00053T-Qw for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 08:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf5vF-0006em-V0 for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 08:46:55 -0400 Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:38479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf5vF-0006ec-Q4 for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 08:46:49 -0400 Received: by igxx6 with SMTP id x6so47829711igx.1 for ; Thu, 24 Sep 2015 05:46:49 -0700 (PDT) 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: Nick Dokos Cc: Org Mode --089e01538ab6e9238405207d9f79 Content-Type: text/plain; charset=UTF-8 On Thu, Sep 24, 2015 at 7:10 AM, Matt Price wrote: > > > On Thu, Sep 24, 2015 at 12:00 AM, Nick Dokos wrote: > >> Matt Price writes: >> > > ----- > it looks about right until the very end; Manually running "dot > /tmp/babel-2749DTL/dot-2749Nkt -Tpng -o /home/matt/example-diagram.png" > from a shell works fine. However, the result of: > > (org-babel-eval > (concat cmd > " " (org-babel-process-file-name in-file) > " " cmdline > " -o " (org-babel-process-file-name out-file)) "") > > is "nil". Any idea why that might be? > > Just a quick addendum. Pausing during debugging and running (with-temp-file in-file ) (org-babel-eval "dot /tmp/babel-2749DTL/dot-2749Nkt -Tpng -o /home/matt/example-diagram.png" "") from a scratch buffer also works. So I am really confused -- maybe there is something wrong with ob-dot itself? Again, many thanks, > Matt > --089e01538ab6e9238405207d9f79 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Sep 24, 2015 at 7:10 AM, Matt Price <moptop99@gmail.com&g= t; wrote:


<= div>
On Thu, Sep 24, 2015 at 12:00 AM, Nick Dokos <ndokos@= gmail.com> wrote:
Matt Price <moptop99@gmail.com> writes:

-----
it l= ooks about right until the very end; Manually running "dot /tmp/babel-= 2749DTL/dot-2749Nkt -Tpng -o /home/matt/example-diagram.png" from a sh= ell works fine. However, the result of:

(org-babel-eval
=C2=A0=C2= =A0=C2=A0=C2=A0 (concat cmd
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 = " " (org-babel-process-file-name in-file)
=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0=C2=A0 " " cmdline
=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0 " -o " (org-babel-process-file-name out-file))= "")

is "nil".= =C2=A0 Any idea why that might be?=C2=A0

<= div>
Just a quick addendum.=C2=A0 Pausing during debugging an= d running

(with-temp-file in-file )
(org-babel-eval
=C2=A0&q= uot;dot /tmp/babel-2749DTL/dot-2749Nkt -Tpng -o /home/matt/example-diagram.= png"=C2=A0 "")=C2=A0

from a scratch buffe= r also works.=C2=A0 So I am really confused -- maybe there is something wro= ng with ob-dot itself?

Again, many thanks,
Matt

--089e01538ab6e9238405207d9f79--