From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Re: org-babel -- Improper syntax error in session mode? Date: Mon, 27 Jun 2011 18:09:08 +0000 (UTC) Message-ID: References: <87k4chwgpa.fsf@gmail.com> <23747.1308539849@alphaville.dokosmarshall.org> <87ei2ouwxk.fsf@gmail.com> <87aadcxl05.fsf@gmail.com> <87fwn4vsd6.fsf@gmail.com> <87pqm7jbz1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGFR-000766-Ey for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbGFO-0000tr-Jo for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:09:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:40696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGFO-0000tb-4P for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:09:22 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QbGFM-00084d-Kd for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 20:09:20 +0200 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 20:09:20 +0200 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 20:09:20 +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 gmail.com> writes: > There are times when I explicitly do not want a session to start fresh. > Generally this is related to caching, for example if I have some value > which is expensive (say a couple of minutes of computation) to compute, > and it is currently alive in the session, then I'd probably rather keep > my session active across multiple exports as I'm working on other (say > visual/prose tweaks) to the exported document. > > Does that make sense? > > If the user did want to refresh the session on _every_ export I believe > they could add such a function to the `org-export-preprocess-hook'. > > Cheers -- Eric > Eric -- That makes perfect sense. However to the extent reproducibility is a concern it would make me uneasy to have a default that does nothing to enforce reproducibility; and instead to have it controlled in a hook behind-the-scenes. An acceptable alternative it seems to me, would be to put an elisp source block at begin of document to reset the session, and then to use that block to control whether session is reset. That way it's clear to user exactly what's happening. -- Herb