From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Bug: org-export-babel-evaluate causes everything to be exported [8.3.4 (release_8.3.4-824-ga02fe8)] Date: Thu, 19 May 2016 20:18:32 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Y9F-00083V-2g for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:18:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3Y9C-0003kz-BT for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:18:35 -0400 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:33636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Y9C-0003kv-64 for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:18:34 -0400 Received: by mail-qk0-x22a.google.com with SMTP id n63so58149926qkf.0 for ; Thu, 19 May 2016 17:18:34 -0700 (PDT) Received: from parma.local ([2601:98a:4001:daec:d875:80d0:d5f:f0b2]) by smtp.gmail.com with ESMTPSA id h83sm7685539qhh.4.2016.05.19.17.18.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 17:18:33 -0700 (PDT) In-reply-to: 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-org A bit of digging in git and I guess this commit may be related, http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=ec615b192d703a0201ceefd46897e4636ff00a38 summarized as "Fix `org-export-babel-evaluate' handling" -k. On 2016-05-19 at 20:13, Ken Mankoff wrote: > I've noticed that code and results are all getting exported in the > latest Org mode git head. This is new behavior. I haven't traced > it to what commit caused this change, but the stock 8.2.10 install does > not have this bug. > > The offending setting is: > > (setq org-export-babel-evaluate nil) > > My full state is attached below, but I'm recreating the bug with a > simpler setup: > > I'm running a clean Emacs with: > > ~/local/Applications/Emacs.app/Contents/MacOS/Emacs -Q ~/.emacs.d/simple.el > > where the contents of "simple.el" are only: > > ;;------------------------------------------------ > (add-to-list 'load-path "~/local/src/org-mode/lisp") > (add-to-list 'load-path "~/local/src/org-mode/contrib" t) > (require 'org) > (setq org-export-babel-evaluate nil) > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . t) > (octave . t))) > ;;------------------------------------------------ > > If I evaluate the first 3 lines, I load the latest git head. If I do > not, I run Org 8.2.10. If I evaluate the 4th line, "(setq > org-export-babel-evaluate nil)", the bug does not appear in 8.2.10, but > does appear in git head. > > I test it with the following file: > > ;;------------------------------------------------ > #+BEGIN_SRC octave :exports results > "hello, world" > #+END_SRC > #+RESULTS: > : hello, world > ;;------------------------------------------------ > > > Which I then export to LaTeX. In Org 8.2.10 w/ or w/o > "org-export-babel-evaluate", I only see results. In git head, I see the > code and the results if it is set to 'nil'. > > > -k. > > > > Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, Carbon Version 157 AppKit 1348.17) > of 2015-12-15 on bos-mp6ry > Package: Org-mode version 8.3.4 (release_8.3.4-824-ga02fe8 @ /Users/mankoff/local/src/org-mode/lisp/) > > current state: > ============== > (setq > org-export-babel-evaluate nil > org-tab-first-hook '(org-hide-block-toggle-maybe > org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-html-format-drawer-function '(closure > (htmlize-buffer-places > org-html-format-table-no-css > htmlize-css-name-prefix > htmlize-output-type htmlize-output-type > htmlize-css-name-prefix t) > (_name contents) contents) > org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function > org-confirm-shell-link-function 'yes-or-no-p > org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default > org-latex-format-headline-function 'org-latex-format-headline-default-function > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-latex-format-drawer-function '(closure (t) (_ contents) contents) > org-odt-format-headline-function 'org-odt-format-headline-default-function > org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src-mode-configure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '((closure > (org-inlinetask-min-level buffer-face-mode-face org-mode-map > org-tbl-menu org-org-menu org-struct-menu org-entities > org-last-state org-id-track-globally org-clock-start-time > texmathp-why remember-data-file > org-agenda-tags-todo-honor-ignore-options > iswitchb-temp-buflist calc-embedded-open-mode > calc-embedded-open-formula calc-embedded-close-formula > align-mode-rules-list zmacs-regions outline-mode-menu-hide > outline-mode-menu-show outline-mode-menu-heading > org-emphasis-alist org-emphasis-regexp-components > org-export-registered-backends org-modules > org-babel-load-languages t) > nil > (org-add-hook (quote change-major-mode-hook) > (quote org-show-block-all) (quote append) (quote local)) > ) > (lambda nil > (org-add-hook (quote change-major-mode-hook) > (quote org-babel-show-result-all) (quote append) > (quote local)) > ) > org-babel-result-hide-spec org-babel-hide-all-hashes) > org-archive-hook '(org-attach-archive-delete-maybe) > org-ascii-format-drawer-function '(closure (t) (_name contents _width) > contents) > org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-execute-safely-maybe) > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > org-cycle-show-empty-lines > org-optimize-window-after-visibility-change) > org-confirm-elisp-link-function 'yes-or-no-p > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-odt-format-drawer-function '(closure > (hfy-user-sheet-assoc hfy-optimizations > hfy-html-quote-regex hfy-html-quote-map > hfy-face-to-css hfy-begin-span-handler > hfy-end-span-handler archive-zip-extract > nxml-auto-insert-xml-declaration-flag t) > (_name contents) contents) > org-html-format-headline-function 'org-html-format-headline-default-function > org-babel-load-languages '((emacs-lisp . t) (octave . t)) > org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > )