From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] help debugging org-babel-execute-buffer Date: Wed, 25 Aug 2010 08:50:11 -0600 Message-ID: <87d3t6d9wc.fsf@gmail.com> References: <17530.1282195997@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35033 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoHLO-0002yj-Fq for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 10:52:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoHIw-0005Mn-1B for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 10:50:19 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:54149) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoHIv-0005Mj-OR for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 10:50:18 -0400 Received: by pxi5 with SMTP id 5so406992pxi.0 for ; Wed, 25 Aug 2010 07:50:16 -0700 (PDT) In-Reply-To: <17530.1282195997@gamaville.dokosmarshall.org> (Nick Dokos's message of "Thu, 19 Aug 2010 01:33:17 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Hi Nick, Thanks for hunting this bug down. Nick Dokos writes: > Austin Frank wrote: > > >> I have a document that always throws an error when I call >> org-babel-execute-buffer. I'd guess that there's one particular block >> that is to blame, but I can't tell which block babel is in at the point >> when the error is thrown. >> >> The error is: >> >> #v+ >> Debugger entered--Lisp error: (invalid-function org-save-outline-visibility) >> org-save-outline-visibility(t 1 nil nil) >> org-babel-execute-buffer(nil) >> call-interactively(org-babel-execute-buffer nil nil) >> #v- >> >> Looking at the macro for org-save-outline-visibility, I think the >> problem has to do with the last two arguments being passed in as nil >> nil. I don't, however, know how this is happening. >> > > I think this is a bug: org-save-outline-visibility is indeed a macro, > defined in org.el, but ob.el does not require org.el, so when it is > compiled, the compiler thinks it's a function that will be defined elsewhere. > If the uncompiled ob.el is loaded, there should be no problem. > > Two possible solutions: > > - (require 'org) in ob.el. This first solution can't work, because org.el requires ob.el, and circular requires are not allowed. > > - move the definition of the macro to org-macs.el (which is required > by ob.el *and* org.el.) > > I'd vote for the second, but Carsten and/or Eric might have a different > preference. > I agree this sounds like a good solution, if Carsten agrees then I will apply it. Thanks -- Eric > > Nick > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode