From: Richard Stanton <stanton@haas.berkeley.edu>
To: "'emacs-orgmode@gnu.org'" <emacs-orgmode@gnu.org>
Subject: Python code block hangs with :session if python-mode is loaded
Date: Sat, 31 Mar 2012 15:40:41 -0700 [thread overview]
Message-ID: <40C7B1BFC291ED4E9D10436D07736A334702EB9E79@EXMAIL7.haas.uc.berkeley.edu> (raw)
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, producing the (correct) output shown:
#+begin_src python :results output
print "%d + %d = %d" % (2, 3, 2+3)
2**5
#+end_src
#+RESULTS:
: 2 + 3 = 5
If I do not have (require 'python-mode) in my init.el, the following also works fine:
#+begin_src python :results output :session
print "%d + %d = %d" % (2, 3, 2+3)
2**5
#+end_src
#+RESULTS:
: 2 + 3 = 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 python code block". I can get out by pressing C-g, but it never returns otherwise.
next reply other threads:[~2012-03-31 22:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-31 22:40 Richard Stanton [this message]
2012-04-01 12:50 ` Python code block hangs with :session if python-mode is loaded Eric Schulte
2012-04-01 15:37 ` Richard Stanton
-- strict thread matches above, loose matches on Subject: below --
2012-03-31 23:02 Richard Stanton
2012-04-01 16:19 Rustom Mody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40C7B1BFC291ED4E9D10436D07736A334702EB9E79@EXMAIL7.haas.uc.berkeley.edu \
--to=stanton@haas.berkeley.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).