From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image Date: Sat, 07 Jul 2018 13:20:43 +0200 Message-ID: <87wou7i96c.fsf@nicolasgoaziou.fr> References: <87fu3wlx1m.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fblH0-0005Ed-RJ for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 07:21:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fblGx-0004dU-LQ for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 07:21:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fblGx-0004dL-Hu for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 07:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fblGx-0007Pb-CJ for emacs-orgmode@gnu.org; Sat, 07 Jul 2018 07:21:03 -0400 Sender: "Debbugs-submit" Resent-To: emacs-orgmode@gnu.org Resent-Message-ID: In-Reply-To: <87fu3wlx1m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 15 Apr 2018 09:59:49 +0200") 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" To: wang jinjian Cc: 26467-done@debbugs.gnu.org Nicolas Goaziou writes: > I can achieve the desired effect with: > > #+name: nodes > | From | To | Weight | > |------+----+--------| > | A | B | 3 | > | A | C | 2 | > | B | D | 4 | > | B | E | 5 | > | C | F | 10 | > > #+begin_src elisp :file /tmp/a.png :var nodes=nodes :results file > (defun rowfun (x) > (format "%s -> %s [label=%s];" (nth 0 x) (nth 1 x) (nth 2 x))) > (defun dotgen (nodes) > (format "digraph {\nnode [shape=circle]\n%s\n}" > (mapconcat #'rowfun nodes "\n"))) > (dotgen nodes) > #+end_src > > I don't see why you would need to call `org-babel-execute:dot'. > > Does it fix your issue? Since the OP didn't answer, I assume this is now fixed. I'm closing this report.