From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: speeding up Babel Gnuplot Date: Wed, 4 Jan 2017 15:15:37 -0800 Message-ID: References: <5864217C.7060001@free.fr> <586963CB.1000006@free.fr> <87d1g6qrqh.fsf@nicolasgoaziou.fr> <586AB3DB.6070702@free.fr> <586C1A53.90601@free.fr> <87tw9eg28w.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOumX-0007yc-2p for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 18:15:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOumT-00074y-Nf for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 18:15:44 -0500 Received: from iport-bcv3-out.ucsd.edu ([132.239.0.89]:56779) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOumT-00073h-7g for emacs-orgmode@gnu.org; Wed, 04 Jan 2017 18:15:41 -0500 In-Reply-To: <87tw9eg28w.fsf@Rainer.invalid> 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: Achim Gratz Cc: emacs-orgmode@gnu.org On Wed, 4 Jan 2017, Achim Gratz wrote: > Thierry Banel writes: >> There is no way to ensure a single call to >> (org-babel-gnuplot-process-vars) without modifying ob-core.el. I don't >> want to do that because I would have to change a lot of babel backends. > > But that is the right fix to apply, unless there is a reason for the > input vars to be processed multiple times. I haven't looked at the > Babel code in the last two years, but generally I'd suggest that each > argument should only be processed once per Babel block since the second > processing could have unwanted side-effects. > I'm late to this party, but AFAICS input vars are processed just once. Running this: #+BEGIN_SRC emacs-lisp :var a=(setq runvar (+ 1 runvar)) a #+END_SRC increments runvar by one each time it is run. So this seems not to be a general babel issue. ?? Chuck