From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Feichtinger Subject: Re: org-export-babel-evaluate=nil ignores ":exports results" setting - this has changed Date: Wed, 22 Feb 2017 16:45:26 +0100 Message-ID: References: <38f5c7e0-b000-f8bd-97dd-6947e3272511@psi.ch> <4a762d44-3d98-0caa-0e2d-3ff515f8f3c9@psi.ch> <87r32qkzyu.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgZ6m-0004vq-L7 for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 10:45:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgZ6h-0006Fl-Pz for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 10:45:36 -0500 Received: from edge20.ethz.ch ([82.130.99.26]:37967) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgZ6h-0006ET-Ft for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 10:45:31 -0500 In-Reply-To: <87r32qkzyu.fsf@yandex.com> 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: Colin Baxter , "Charles C. Berry" Cc: emacs-orgmode@gnu.org Hi Colin On 22.02.2017 16:27, Colin Baxter wrote: > Hi. > > On Tue, Feb 21 2017, Charles C. Berry wrote: > >> On Mon, 20 Feb 2017, Derek Feichtinger wrote: >> >>> Hi Chuck >>> >>> On 21.02.2017 00:54, Charles C. Berry wrote: >>>> On Mon, 20 Feb 2017, Derek Feichtinger wrote: >>>> >>>>> When org-export-babel-evaluate is set to nil, I see a different >>>>> behavior now as compared to earlier versions of org. >>>> Indeed. >>>> >>>> It is now *obsolete* and its behavior has intentionally been >>>> changed as noted here: >>>> >> >>> So, I still feel that this is a very much needed functionality that >>> has been lost on the way. >> Nothing is lost here. >> >> Reread the part of my post that you deleted in your reply: >> >> : | ... Users >> : | who wish to avoid evaluating code on export should use the header >> : | argument =E2=80=98:eval never-export=E2=80=99. >> : | >> >> which is how to do what you want. >> >> And maybe review how to set header args buffer wide or system-wide. >> > I agree very much with the sentiments expressed by Derek > Feichtinger. The old org-export-babel-evaluate allowed a setting to be ma= de > for one or several files. Perhaps I've not understood correctly, but the > new arrangement would seem to suggest that the user has to insert what > they want at each src_code block. > Based on the documentation one can set the header arguments system wide=20 using these variables: org-babel-default-header-args (for all) org-babel-default-header-args: (language specific) File wide using PROPERTY: #+PROPERTY: header-args :eval never-export Org heading wide using a local property setting: * sample header :PROPERTIES: :header-args: :eval never-export :END: The last two ways I tested. So, in the end, with some changes to most of=20 my files I can get the same behavior again, which is good. It's a matter of taste or use case whether to define the default=20 behavior to eval on export. I would have made the case the eval on=20 export is the more rare use case. I almost never have this, except for=20 certain kinds of reports, e.g. if you want to gather the state of a=20 server with a number of prepared queries in the org file. For me, most=20 org files are like a number of measurements taken at a certain point in=20 time, and I want to conserve the output of the evaluation exactly like=20 it was. E.g. when working at speeding up code, I very much like to do=20 the whole thing inside of an org file where I document the speed=20 measurements, my changes to code and what the effect was. So, more like=20 some kind of interactive lab journal. But as I said, it is a matter of taste, and I am happy that I can get=20 the original functionality without too much effort. Best regards, Derek --=20 Paul Scherrer Institut Dr. Derek Feichtinger Phone: +41 56 310 47 33 Section Head Science-IT Email: derek.feichtinger@psi.ch Building/Room No. WHGA/U126 CH-5232 Villigen PSI