From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Getting source code to work Date: Wed, 01 Aug 2012 16:00:45 -0400 Message-ID: <4259.1343851245@alphaville> References: <3133.1343848319@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swf6A-0004fB-A4 for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 16:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swf69-0001QI-4k for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 16:00:50 -0400 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:14132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swf68-0001Os-Rr for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 16:00:48 -0400 In-Reply-To: Message from Mark Stoehr of "Wed, 01 Aug 2012 14:18:43 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: Mark Stoehr Cc: emacs-orgmode@gnu.org Mark Stoehr wrote: > I just installed emacs and org-mode on a new machine, do you have any > suggestions for debugging this? > No easy way, I'm afraid (but maybe somebody else can think of something better). I usually run edebug on the suspect function and single step through it, examining variables as I go. For details on edebug, see the emacs lisp manual, section 18.2 "Edebug". Nick > Mark > > On Wed, Aug 1, 2012 at 2:11 PM, Nick Dokos wrote: > > Mark Stoehr wrote: > > > >> Hi, I'm trying to include python source code in my document and I'm > >> finding that org-babel-execute-buffer ( as well as C-c C-c at the end > >> of a code block) does not successfully run my code, instead I get an > >> error "Invalid function: org-save-outline-visibility". I saw messages > >> earlier > >> > >> http://thread.gmane.org/gmane.emacs.orgmode/28048/focus=28049 > >> > >> regarding an apparently similar problem but my understanding of emacs > >> lisp is insufficient for me to make sense of it. My program: > >> > >> #+BEGIN_SRC python > >> print "Hello World" > >> return 1+2 > >> #+END_SRC > >> > >> > >> I also have trouble getting tangle to work. With the following problem > >> > >> > >> #+BEGIN_SRC python :tangle yes > >> print "Hello World" > >> return 1+2 > >> #+END_SRC > >> > >> both C-c C-v t and M-x org-babel-tangle fail saying that 0 blocks have > >> been tangled. I also tried the examples with the #+BEGIN_SRC and > >> #+END_SRC being in lowercase and that didn't change anything. > >> > > > > Cannot reproduce either problem: the code block produces a > > > > #+RESULTS: > > : 3 > > > > and the tangle says: > > > > tangled 1 code block from mark-stoehr.org > > > > Nick > > > > Version info: > > > > Org-mode version 7.8.11 (release_7.8.11-260-ga15b7d @ /home/nick/elisp/org-mode/lisp/) > > (includes a few local commits) > > > > GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 2012-07-28 > > >