emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with org-babel and shell scripts
Date: Tue, 10 Jul 2012 14:53:26 -0400	[thread overview]
Message-ID: <4558.1341946406@alphaville> (raw)
In-Reply-To: Message from "John Wiegley" <johnw@newartisans.com> of "Tue, 10 Jul 2012 12:41:53 CDT." <m2wr2bv7ha.fsf@newartisans.com>

John Wiegley <johnw@newartisans.com> 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

  parent reply	other threads:[~2012-07-10 18:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 17:41 Problem with org-babel and shell scripts John Wiegley
     [not found] ` <johnw@newartisans.com>
2012-07-10 18:53   ` Nick Dokos [this message]
2013-02-25  5:13   ` Bug in behavior of M-RET with latest Org-mode Nick Dokos
2013-02-25  5:39   ` Nick Dokos
2013-03-03 17:07     ` Bastien
2012-07-10 20:08 ` Problem with org-babel and shell scripts Bastien
  -- strict thread matches above, loose matches on Subject: below --
2013-02-25  4:25 Bug in behavior of M-RET with latest Org-mode John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4558.1341946406@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).