diff options
| author | Glenn Morris | 2007-09-24 00:12:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-24 00:12:25 +0000 |
| commit | f4ff3e5cc0e873be609cf6172386c56587a83f31 (patch) | |
| tree | 5c2e2dc493e2bef967132622d5abe401cfa1069b | |
| parent | 3ae2e3a37fae680f44f23170cc06d160d694b831 (diff) | |
| download | emacs-f4ff3e5cc0e873be609cf6172386c56587a83f31.tar.gz emacs-f4ff3e5cc0e873be609cf6172386c56587a83f31.zip | |
Adam Hupp <adam at hupp.org>
(run-python): Import emacs module without waiting; prevents lockup on
error.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8240349570a..abd5fd53352 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-09-24 Adam Hupp <adam@hupp.org> | ||
| 2 | |||
| 3 | * progmodes/python.el (run-python): Import emacs module without | ||
| 4 | waiting; prevents lockup on error. | ||
| 5 | |||
| 1 | 2007-09-23 Richard Stallman <rms@gnu.org> | 6 | 2007-09-23 Richard Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * mail/sendmail.el (mail-bury): Delete the frame | 8 | * 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.)" | |||
| 1375 | ;; seems worth putting in a separate file, and it's probably cleaner | 1375 | ;; seems worth putting in a separate file, and it's probably cleaner |
| 1376 | ;; to put it in a module. | 1376 | ;; to put it in a module. |
| 1377 | ;; Ensure we're at a prompt before doing anything else. | 1377 | ;; Ensure we're at a prompt before doing anything else. |
| 1378 | (python-send-receive "import emacs; print '_emacs_out ()'"))) | 1378 | (python-send-string "import emacs"))) |
| 1379 | (if (derived-mode-p 'python-mode) | 1379 | (if (derived-mode-p 'python-mode) |
| 1380 | (setq python-buffer (default-value 'python-buffer))) ; buffer-local | 1380 | (setq python-buffer (default-value 'python-buffer))) ; buffer-local |
| 1381 | ;; Without this, help output goes into the inferior python buffer if | 1381 | ;; Without this, help output goes into the inferior python buffer if |