From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Stoehr Subject: Getting source code to work Date: Wed, 1 Aug 2012 13:51:11 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swe1B-0007jt-PY for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 14:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swe17-0003jm-Mi for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 14:51:37 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:49169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swe17-0003jZ-Ib for emacs-orgmode@gnu.org; Wed, 01 Aug 2012 14:51:33 -0400 Received: by yhr47 with SMTP id 47so8925023yhr.0 for ; Wed, 01 Aug 2012 11:51:32 -0700 (PDT) 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 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.