From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Python code block hangs with :session if python-mode is loaded Date: Sat, 31 Mar 2012 15:40:41 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A334702EB9E79@EXMAIL7.haas.uc.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SE6yc-0003cR-V7 for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 18:40:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SE6yb-0007yK-AY for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 18:40:54 -0400 Received: from gateway-b.haas.berkeley.edu ([128.32.222.40]:31722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SE6yb-0007yC-4d for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 18:40:53 -0400 Content-Language: en-US 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'" I have python-mode (latest version from Launchpad) set up to handle python = editing in Emacs. Using orgmode, the following code block runs fine if Ipress C-c C-c, produc= ing the (correct) output shown: #+begin_src python :results output print "%d + %d =3D %d" % (2, 3, 2+3) 2**5 #+end_src #+RESULTS: : 2 + 3 =3D 5 If I do not have (require 'python-mode) in my init.el, the following also w= orks fine: #+begin_src python :results output :session print "%d + %d =3D %d" % (2, 3, 2+3) 2**5 #+end_src #+RESULTS: : 2 + 3 =3D 5 : 32 However, if (require 'python-mode) is in my init.el file, pressing C-c C-c = in the second code block causes Emacs to hang with the message "Executing p= ython code block". I can get out by pressing C-g, but it never returns oth= erwise.