changeset 84819:745fc321a3b4

Adam Hupp <adam at hupp.org> (run-python): Import emacs module without waiting; prevents lockup on error.
author Glenn Morris <rgm@gnu.org>
date Mon, 24 Sep 2007 00:12:17 +0000
parents 8171d3c478b9
children 20b2468a2983
files lisp/progmodes/python.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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