From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: org-babel, src blocks and asymptote Date: Wed, 16 Sep 2009 14:50:58 +0200 Message-ID: <87ocpboxxp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MntyW-000722-7V for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 08:51:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MntyS-00070z-SI for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 08:51:06 -0400 Received: from [199.232.76.173] (port=36740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MntyS-00070p-77 for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 08:51:04 -0400 Received: from smtp22.services.sfr.fr ([93.17.128.13]:9070) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MntyR-0004ZM-Hj for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 08:51:03 -0400 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2214.sfr.fr (SMTP Server) with ESMTP id 23D3D7000098 for ; Wed, 16 Sep 2009 14:51:04 +0200 (CEST) Received: from lowzel.ath.cx (252.95.74-86.rev.gaoland.net [86.74.95.252]) by msfrf2214.sfr.fr (SMTP Server) with ESMTP id F40D07000094 for ; Wed, 16 Sep 2009 14:51:03 +0200 (CEST) Received: from selenimh. (unknown [93.9.214.245]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by lowzel.ath.cx (Postfix) with ESMTPSA id 5D1AA26005B for ; Wed, 16 Sep 2009 14:51:01 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode list Hello, Org-babel looks very interesting. I am pleased to see an asymptote module included in it. While testing it, I think I found 2 problems : To activate the asymptote module, you have to begin the source block, for example, with #+begin_src asymptote :file bezier.pdf Unfortunately, the major mode used to edit asymptote code is named asy-mode. This leads to the following error when you edit the block with C-c ' : no such language mode: asymptote-mode. Perhaps that module should be named org-babel-asy ? The second problem, related to Org Src handling, is that the code is put in a temporary buffer. I don't know about other languages, but, in asy-mode, you can't compile code while in that kind of buffer. This can be quite problematic in a language oriented towards graphics, as you need to often make previews of your work. In other words, is there an option to associate a temporary file to the process (even in a per-language basis) instead of a buffer ? Or do I have to mess with org-src-mode-hook to try to fix it ? Regards, -- Nicolas Goaziou