From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Alexander Gerds Subject: Re: export of src block ignores :results Date: Sun, 02 Oct 2016 13:08:34 +0200 Message-ID: <87mvinm2j1.fsf@biostat.ku.dk> References: <87r383ky0w.fsf@biostat.ku.dk> <87a8eqv5x2.fsf@biostat.ku.dk> <87fuoinfhz.fsf@biostat.ku.dk> <878tu8oc32.fsf@biostat.ku.dk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqedP-0000oB-F1 for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 07:08:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqedL-0005UP-5h for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 07:08:42 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:34773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqedK-0005U5-Sn for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 07:08:39 -0400 Received: by mail-lf0-x233.google.com with SMTP id b81so16681568lfe.1 for ; Sun, 02 Oct 2016 04:08:38 -0700 (PDT) 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: "Charles C. Berry" Cc: emacs-orgmode@gnu.org, istazahn@gmail.com you are absolutely right: I did not know about system-wide header args. the following system-wide setting in the devel version is equivalent to my old setting: (setq org-export-babel-evaluate t) (add-to-list 'org-babel-default-header-args '(:eval . "never-export")) thanks again for your help and patience! Thomas "Charles C. Berry" writes: > On Fri, 30 Sep 2016, Thomas Alexander Gerds wrote: > >> right, this is what changed and setting :eval never-export on a each >> block solves the problem. however, the new way breaks all my >> existing org-code. > > I don't follow this. What exactly is broken? > > You know all the options for setting header args, right? System-wide, > buffer-wide, etc. For buffer-wide setting, one line is all it takes: > > : #+PROPERTY: header-args :eval never-export > > (and remember to C-c C-c on that line whenever you insert/edit it) > >> is there a reason why the header args have to be ignored when >> org-export-babel-evaluate is nil? or asking more directly: would it >> be possible to have another option, e.g., >> (setq org-export-babel-evaluate 'never-eval-obey-header-args) >> > > But that is what :eval never-export does. > >> such that the export process does never evaluate src code but header >> arguments are always obeyed? >> > > Possible, yes. But since it adds no new capability and makes the babel > code more involved, there isn't the motivtion to do it. > > Chuck > > > -- Thomas A. Gerds -- Department of Biostatistics Copenhagen University of Copenhagen, Oester Farimagsgade 5, 1014 Copenhagen, Denmark