# HG changeset patch # User Glenn Morris # Date 1190592737 0 # Node ID 745fc321a3b461145ad7cce3849854f34f074d87 # Parent 8171d3c478b9e5db61c3be5d44efe9e59446ded7 Adam Hupp (run-python): Import emacs module without waiting; prevents lockup on error. diff -r 8171d3c478b9 -r 745fc321a3b4 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Sun Sep 23 15:39:16 2007 +0000 +++ b/lisp/progmodes/python.el Mon Sep 24 00:12:17 2007 +0000 @@ -1375,7 +1375,7 @@ ;; seems worth putting in a separate file, and it's probably cleaner ;; to put it in a module. ;; Ensure we're at a prompt before doing anything else. - (python-send-receive "import emacs; print '_emacs_out ()'"))) + (python-send-string "import emacs"))) (if (derived-mode-p 'python-mode) (setq python-buffer (default-value 'python-buffer))) ; buffer-local ;; Without this, help output goes into the inferior python buffer if