From f4ff3e5cc0e873be609cf6172386c56587a83f31 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 24 Sep 2007 00:12:25 +0000 Subject: [PATCH] Adam Hupp (run-python): Import emacs module without waiting; prevents lockup on error. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/python.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8240349570a..abd5fd53352 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-09-24 Adam Hupp + + * progmodes/python.el (run-python): Import emacs module without + waiting; prevents lockup on error. + 2007-09-23 Richard Stallman * mail/sendmail.el (mail-bury): Delete the frame diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 462445f3d71..8929616ef79 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1375,7 +1375,7 @@ buffer for a list of commands.)" ;; 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 -- 2.39.2