From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Unexpected behaviour with gnuplot source blocks Date: Sat, 22 Jun 2013 18:02:06 +0200 Message-ID: <87vc56w2v5.fsf@Rainer.invalid> References: <87ip18sqv6.fsf@gmail.com> <87txkrqzgb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqQGd-0001Gs-Qr for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 12:02:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqQGc-000501-Qq for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 12:02:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:37527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqQGc-0004zs-KX for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 12:02:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UqQGZ-0004Fd-Ji for emacs-orgmode@gnu.org; Sat, 22 Jun 2013 18:02:19 +0200 Received: from pd9eb1cf6.dip0.t-ipconnect.de ([217.235.28.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jun 2013 18:02:19 +0200 Received: from Stromeko by pd9eb1cf6.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Jun 2013 18:02:19 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Schulte writes: >> #+BEGIN_SRC gnuplot :file test.eps >> reset > ^ > WRT |, I've also added the *org-babel-gnuplot-prefix* variable, which > may be set to e.g., "reset" to reset the gnuplot process between code > blocks. We have recently introduced similar functionality in ob-perl and it probably deserves a more general treatment and easier customization. Doing these things with defcustoms or defvars should be shunned, since it makes Org files using these options inherently unportable and non-self-contained. For the functionality that is implemented here, I'd think two new general header arguments are appropriate, namely :prolog and :epilog, which should take the name of a source block (same language), a literal string in quotes, the result of an inline call of another source block and inline elisp (the result of execution must be in the appropriate syntax) as an argument. We might need some friendlier way than elisp if we want to use URL (esp. file:…) in the same capacity. For session execution there may be a need to distibguish between the session start, subsequent invocations and perhaps closing of the session (we don't have that at the moment, I think). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds