From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [babel] help debugging org-babel-execute-buffer Date: Thu, 19 Aug 2010 01:33:17 -0400 Message-ID: <17530.1282195997@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=50812 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Olxko-0005vy-Pl for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 01:33:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Olxkn-0006o5-So for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 01:33:30 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:46068) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Olxkn-0006ni-Lb for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 01:33:29 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7D00C01WRH0R70@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 00:33:18 -0500 (CDT) In-reply-to: Your message of "Mon, 26 Jul 2010 23:14:31 EDT." 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: Austin Frank Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org 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. - 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. Nick