From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feiming Chen Subject: Bug: BABEL Buffer-wide header arguments are NOT effective [7.8.11] Date: Thu, 30 Aug 2012 08:39:44 -0700 (PDT) Message-ID: <1346341184.10633.YahooMailRC@web181504.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-2076221306-2133250780-1346341184=:10633" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T76qV-0005MA-Dn for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 11:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T76qQ-0007SS-V1 for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 11:39:51 -0400 Received: from nm24-vm1.access.bullet.mail.sp2.yahoo.com ([98.139.44.183]:28978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T76qQ-0007S6-I1 for emacs-orgmode@gnu.org; Thu, 30 Aug 2012 11:39:46 -0400 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: emacs-orgmode@gnu.org ---2076221306-2133250780-1346341184=:10633 Content-Type: multipart/alternative; boundary="-2076221306-755088645-1346341184=:10633" ---2076221306-755088645-1346341184=:10633 Content-Type: text/plain; charset=us-ascii Hi: Could anyone help with the following problem? Please see the attached file "a.org" with its text export "a.txt" (from C-c C-e a). Test 1 is using "buffer-wide header arguments" BUT the evaluation result is not inserted into the exported file. I am following the Org Manual section 14.8.1 (Using header arguments). Test 2 is using "code block specific header arguments" and works as expected. For this test, I start emacs with "emacs -Q", use org-version 7.8.11, and enabled " Org Confirm Babel Evaluate" and add R to "Org Babel Load Languages". Thanks a lot for your help! Sincerely, Feiming Chen ------------------------------------------------------------------------ Emacs : GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) of 2012-08-13 on fmc.work Package: Org-mode version 7.8.11 current state: ============== (setq org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-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-agenda-before-write-hook '(org-agenda-add-entry-text) org-confirm-babel-evaluate nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-metaup-hook '(org-babel-load-in-session-maybe) org-reveal-start-hook '(org-decrypt-entry) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-first-hook '(org-beamer-initialize-open-trackers) org-mode-hook '(#[nil "\305\306 >\203 ---2076221306-755088645-1346341184=:10633 Content-Type: text/html; charset=us-ascii
Hi: Could anyone help with the following problem?

Please see the attached file "a.org" with its text export "a.txt" (from C-c C-e a).

Test 1 is using "buffer-wide header arguments" BUT the evaluation result is not inserted into the exported file.  I am following the Org Manual section 14.8.1 (Using header arguments).

Test 2 is using "code block specific header arguments" and works as expected. 
 
For this test, I start emacs with "emacs -Q", use org-version 7.8.11, and enabled " Org Confirm Babel Evaluate" and add R to "Org Babel Load Languages".

Thanks a lot for your hel p!

Sincerely,
Feiming Chen

------------------------------------------------------------------------


Emacs  : GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 of 2012-08-13 on fmc.work
Package: Org-mode version 7.8.11

current state:
==============
(setq
 org-export-blocks '((src org-babel-exp-src-block nil)
             (export-comment org-export-blocks-format-comment t)
             (ditaa org-export-blocks-format-ditaa nil)
             (dot org-export-blocks-format-dot nil))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
              org-babel-execute-safely-maybe)
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select -beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
              org-src-native-tab-command-maybe
              org-babel-hide-result-toggle-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-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-confirm-babel-evaluate nil
 org-speed-command-hook '(org-speed-command-default-hook
              org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '( (src org-babel-exp-non-block-elements))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-reveal-start-hook '(org-decrypt-entry)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil
           "\305\306    >\203
---2076221306-755088645-1346341184=:10633-- ---2076221306-2133250780-1346341184=:10633 Content-Type: text/plain; name="a.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.txt" ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGEKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgID0KCkF1dGhvcjogRmVpbWluZyBD aGVuCkRhdGU6IDIwMTItMDgtMzAgMTE6Mjc6MzggRURUCgoKVGFibGUgb2Yg Q29udGVudHMKPT09PT09PT09PT09PT09PT0KMSB0ZXN0IDE6IEJ1ZmZlci13 aWRlIGhlYWRlciBhcmd1bWVudHMgYXJlIE5PVCBlZmZlY3RpdmUKMiB0ZXN0 IDE6IENvZGUgYmxvY2sgc3BlY2lmaWMgaGVhZGVyIGFyZ3VtZW50cyBhcmUg ZWZmZWN0aXZlCgoKMSB0ZXN0IDE6IEJ1ZmZlci13aWRlIGhlYWRlciBhcmd1 bWVudHMgYXJlIE5PVCBlZmZlY3RpdmUgCi0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoKCiAgcHJp bnQocGkpCgoKMiB0ZXN0IDE6IENvZGUgYmxvY2sgc3BlY2lmaWMgaGVhZGVy IGFyZ3VtZW50cyBhcmUgZWZmZWN0aXZlIAotLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgoK ICBwcmludChwaSkKCgpbMV0gMy4xNDE1OTMKCgoKCgoK ---2076221306-2133250780-1346341184=:10633 Content-Type: application/octet-stream; name="a.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.org" IytQUk9QRVJUWTogZXhwb3J0cyBib3RoCiMrUFJPUEVSVFk6IHJlc3VsdHMg b3V0cHV0CgoqIHRlc3QgMTogQnVmZmVyLXdpZGUgaGVhZGVyIGFyZ3VtZW50 cyBhcmUgTk9UIGVmZmVjdGl2ZQojK2JlZ2luX3NyYyBSIAogIHByaW50KHBp KQojK2VuZF9zcmMKCiogdGVzdCAxOiBDb2RlIGJsb2NrIHNwZWNpZmljIGhl YWRlciBhcmd1bWVudHMgYXJlIGVmZmVjdGl2ZQojK2JlZ2luX3NyYyBSIDpl eHBvcnRzIGJvdGggOnJlc3VsdHMgb3V0cHV0IAogIHByaW50KHBpKQojK2Vu ZF9zcmMKCgoKCgoK ---2076221306-2133250780-1346341184=:10633--