From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with org-babel and shell scripts Date: Tue, 10 Jul 2012 14:53:26 -0400 Message-ID: <4558.1341946406@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SofZ0-0004XR-OH for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 14:53:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SofYv-0004ih-LI for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 14:53:34 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:23001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SofYv-0004aj-FA for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 14:53:29 -0400 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g6t0185.atlanta.hp.com (Postfix) with ESMTP id 18104241BF for ; Tue, 10 Jul 2012 18:53:27 +0000 (UTC) Received: from alphaville.americas.hpqcorp.net (alphaville.americas.hpqcorp.net [16.117.226.11]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id EA90B1420A for ; Tue, 10 Jul 2012 18:53:26 +0000 (UTC) Received: from alphaville (localhost [127.0.0.1]) by alphaville.americas.hpqcorp.net (Postfix) with ESMTP id 5B3C543D88 for ; Tue, 10 Jul 2012 14:53:26 -0400 (EDT) In-Reply-To: Message from "John Wiegley" of "Tue, 10 Jul 2012 12:41:53 CDT." 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 John Wiegley 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