From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: 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:13:56 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Y4p-000754-6k for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3Y4m-0002ar-7S for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:14:01 -0400 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:36859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3Y4m-0002am-1L for emacs-orgmode@gnu.org; Thu, 19 May 2016 20:14:00 -0400 Received: by mail-qg0-x232.google.com with SMTP id w36so52721830qge.3 for ; Thu, 19 May 2016 17:14:00 -0700 (PDT) Received: from parma.local ([2601:98a:4001:daec:d875:80d0:d5f:f0b2]) by smtp.gmail.com with ESMTPSA id y12sm366507qhy.32.2016.05.19.17.13.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 17:13:58 -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: emacs-org 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) )