mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Adam Hupp <adam at hupp.org>
(run-python): Import emacs module without waiting; prevents lockup on error.
This commit is contained in:
parent
3ae2e3a37f
commit
f4ff3e5cc0
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue