From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: File local variables Date: Fri, 12 Dec 2014 01:32:03 -0500 Message-ID: <87vblh1iqk.fsf@kmlap.domain.org> References: <087AD9C9-2531-4835-ABAC-4B4710B99596@agrarianresearch.org> <87y4qd31ii.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzJj3-0000h7-Le for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 01:29:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzJix-0000kJ-Hx for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 01:29:17 -0500 Received: from mail-qg0-f41.google.com ([209.85.192.41]:36401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzJix-0000kF-E0 for emacs-orgmode@gnu.org; Fri, 12 Dec 2014 01:29:11 -0500 Received: by mail-qg0-f41.google.com with SMTP id j5so5015849qga.0 for ; Thu, 11 Dec 2014 22:29:10 -0800 (PST) In-Reply-To: <87y4qd31ii.fsf@gmail.com> (Aaron Ecay's message of "Fri, 12 Dec 2014 00:01:09 -0500") 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: Vikas Rawal Cc: org-mode mailing list Aaron Ecay wrote: > 2014ko abenudak 11an, Vikas Rawal-ek idatzi zuen: >>> I used to disable evaluation of source code when exporting by using >>> the following as the first line: [...] >> I think this is a bug. Could somebody confirm. > > I can=E2=80=99t confirm, in the sense that including that line in a file = sets > the buffer-local value of org-export-babel-evaluate to nil. > > If that variable isn=E2=80=99t having the effect of suppressing evaluatio= n, > that sounds like a bug, but it=E2=80=99s not clear that that is what is g= oing > on. Can you send an ECM? I can't confirm this either (using the following text). ,---- | # -*- org-export-babel-evaluate: nil; -*- | | #+begin_src emacs-lisp :exports both | (message "Evaluating?") | #+end_src | | #+RESULTS: | : Evaluating? `---- 'C-h v' indicates that the buffer-local value is indeed set to nil. The only place the value of org-export-babel-evaluate is checked is org-babel-exp-results. Exporting the example above with org-babel-exp-results edebugged shows that the main body of that function doesn't execute. So, the code isn't being evaluated at export, unless it's happening elsewhere. How are you checking that the code is evaluated at export? -- Kyle