Adam Hupp <adam at hupp.org>

(run-python): Import emacs module without waiting; prevents lockup on
error.
This commit is contained in:
Glenn Morris 2007-09-24 00:12:25 +00:00
parent 3ae2e3a37f
commit f4ff3e5cc0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-09-24 Adam Hupp <adam@hupp.org>
* progmodes/python.el (run-python): Import emacs module without
waiting; prevents lockup on error.
2007-09-23 Richard Stallman <rms@gnu.org>
* mail/sendmail.el (mail-bury): Delete the frame

View file

@ -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