emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem with org-babel and shell scripts


From: Nick Dokos
Subject: Re: [O] Problem with org-babel and shell scripts
Date: Tue, 10 Jul 2012 14:53:26 -0400

John Wiegley <address@hidden> wrote:

> I have a shell block in my todo.txt which I've been using for generating some
> reports for about a year.  I just tried C-c C-c in that shell block today, and
> got the following:
> 
> Debugger entered--Lisp error: (void-variable org-current-export-file)
>   org-babel-confirm-evaluate(("sh" "..." ((:comments . "") (:shebang . "") 
> (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . 
> "code") (:results . "replace") (:session . "none") (:hlines . "no") 
> (:padnewline . "yes") (:result-type . value) (:result-params "replace") 
> (:rowname-names) (:colname-names)) "" nil 0))
>   org-babel-execute-src-block(nil ("sh" "..." ((:comments . "") (:shebang . 
> "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") 
> (:exports . "code") (:results . "replace") (:session . "none") (:hlines . 
> "no") (:padnewline . "yes") (:result-type . value) (:result-params "replace") 
> (:rowname-names) (:colname-names)) "" nil 0))
>   org-babel-execute-src-block-maybe()
>   org-babel-execute-maybe()
>   org-babel-execute-safely-maybe()
>   run-hook-with-args-until-success(org-babel-execute-safely-maybe)
>   org-ctrl-c-ctrl-c(nil)
>   call-interactively(org-ctrl-c-ctrl-c nil nil)
> 
> I guess something changed recently?
> 

The most recent change I can find in that area is

e56e2c87 lisp/ob.el       (Bastien Guerry 2011-12-12 18:04:15 +0100 275) 
(defvar org-current-export-file) ; dynamically bound

Not sure if that's enough to explain the error you get. Does

(require 'org-exp)

fix it? or (long shot and rather doubtful) "make autoloads"? 

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]