diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:25 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:25 -0300 |
| commit | a0686d71f63440b119bcf671eea7409f2476bef9 (patch) | |
| tree | 99dbf7b1b7a5bca2c6fa5bb30e558248bd7e6ff6 /lisp/progmodes/python.el | |
| parent | fad22dec878e8dc263a71348587c4ee182a4ea9b (diff) | |
| download | emacs-a0686d71f63440b119bcf671eea7409f2476bef9.tar.gz emacs-a0686d71f63440b119bcf671eea7409f2476bef9.zip | |
Make run-python-internal to set process-query-on-exit-flag to nil
Also python-shell-make-comint now returns the process buffer name.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e6faf73547e..53bb9939dee 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1274,7 +1274,8 @@ non-nil the buffer is shown." | |||
| 1274 | (inferior-python-mode) | 1274 | (inferior-python-mode) |
| 1275 | (python-util-clone-local-variables current-buffer)))) | 1275 | (python-util-clone-local-variables current-buffer)))) |
| 1276 | (when pop | 1276 | (when pop |
| 1277 | (pop-to-buffer proc-buffer-name))))) | 1277 | (pop-to-buffer proc-buffer-name)) |
| 1278 | proc-buffer-name))) | ||
| 1278 | 1279 | ||
| 1279 | (defun run-python (dedicated cmd) | 1280 | (defun run-python (dedicated cmd) |
| 1280 | "Run an inferior Python process. | 1281 | "Run an inferior Python process. |
| @@ -1313,9 +1314,11 @@ with user shells. Runs the hook | |||
| 1313 | run). \(Type \\[describe-mode] in the process buffer for a list | 1314 | run). \(Type \\[describe-mode] in the process buffer for a list |
| 1314 | of commands.)" | 1315 | of commands.)" |
| 1315 | (interactive) | 1316 | (interactive) |
| 1316 | (python-shell-make-comint | 1317 | (set-process-query-on-exit-flag |
| 1317 | (python-shell-parse-command) | 1318 | (get-buffer-process |
| 1318 | (python-shell-internal-get-process-name))) | 1319 | (python-shell-make-comint |
| 1320 | (python-shell-parse-command) | ||
| 1321 | (python-shell-internal-get-process-name))) nil)) | ||
| 1319 | 1322 | ||
| 1320 | (defun python-shell-get-process () | 1323 | (defun python-shell-get-process () |
| 1321 | "Get inferior Python process for current buffer and return it." | 1324 | "Get inferior Python process for current buffer and return it." |