From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Baxter Subject: Re: org-export-babel-evaluate=nil ignores ":exports results" setting - this has changed Date: Wed, 22 Feb 2017 18:56:09 +0000 Message-ID: <87mvdekqba.fsf@yandex.com> 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 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgc5M-0002L8-2L for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 13:56:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgc5I-0003bk-Vw for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 13:56:20 -0500 Received: from forward4h.cmail.yandex.net ([87.250.230.101]:35229) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgc5I-0003b9-G8 for emacs-orgmode@gnu.org; Wed, 22 Feb 2017 13:56:16 -0500 In-Reply-To: (Derek Feichtinger's message of "Wed, 22 Feb 2017 16:45:26 +0100") 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: Derek Feichtinger Cc: emacs-orgmode@gnu.org, "Charles C. Berry" On Wed, Feb 22 2017, Derek Feichtinger wrote: Dear Derek, > 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: >>> --------- snip --------- > Based on the documentation one can set the header arguments system wide > 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 > 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 > behavior to eval on export. I would have made the case the eval on > export is the more rare use case. I almost never have this, except for > certain kinds of reports, e.g. if you want to gather the state of a > server with a number of prepared queries in the org file. For me, most > org files are like a number of measurements taken at a certain point in > time, and I want to conserve the output of the evaluation exactly like > it was. E.g. when working at speeding up code, I very much like to do > the whole thing inside of an org file where I document the speed > measurements, my changes to code and what the effect was. So, more like > some kind of interactive lab journal. > > But as I said, it is a matter of taste, and I am happy that I can get > the original functionality without too much effort. > > Best regards, > Derek --------------- snip --------- Thank you, I really appreciate this information. You have saved me a couple of hours work. I'll probably end up setting org-babel-default-header-args as a local variable. Thanks again. Best wishes.