From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Denton Subject: Bug? org-export-babel-evaluate setting breaks :exports results Date: Thu, 29 Sep 2016 13:23:50 -0400 (EDT) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpf3u-0005j3-4h for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 13:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpf3p-0004Yn-TM for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 13:23:58 -0400 Received: from shell.miskatonic.org ([65.39.236.119]:45143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpf3p-0004Xw-PW for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 13:23:53 -0400 Received: from localhost (localhost [127.0.0.1]) by shell.miskatonic.org (Postfix) with ESMTP id 9CEA8FA0CE3 for ; Thu, 29 Sep 2016 13:23:50 -0400 (EDT) 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: emacs-orgmode@gnu.org I'm working on a big Org file on a slow machine, so I set org-export-babel-evaluate to nil so exporting to PDF just generates the file from what's in the buffer, without doing any calculating. I have a mix of source blocks, and all of a sudden the code began to appear in the PDF when all I wanted were the results. I boiled it down to the example below. If you save that to a file, load it, ~C-c C-e l o RET~ to export to PDF, you will see the ls command and the output, even though the setting is ":exports results". Now delete the org-export-babel-evaluate line, ~C-x C-v RET~ to reload the file and pick up the new setting, then export to PDF. You will not see the ls command, just the output. ###### BEGIN # -*- org-export-babel-evaluate: nil -*- #+BEGIN_SRC shell :results value :exports results ls /etc | wc -l #+END_SRC #+RESULTS: : 307 ###### END I'm not sure what's happening, but it seems like a bug. (This is on Emacs 25.2.50.2 with Org compiled from source today, up to Nicolas's 2b22d503e1ee83f3a2681964f9de8405438a6385 commit yesterday). Bill -- William Denton :: Toronto, Canada :: https://www.miskatonic.org/ Caveat lector.