From a0686d71f63440b119bcf671eea7409f2476bef9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:25 -0300 Subject: [PATCH] Make run-python-internal to set process-query-on-exit-flag to nil Also python-shell-make-comint now returns the process buffer name. --- lisp/progmodes/python.el | 11 +++++++---- 1 file 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." (inferior-python-mode) (python-util-clone-local-variables current-buffer)))) (when pop - (pop-to-buffer proc-buffer-name))))) + (pop-to-buffer proc-buffer-name)) + proc-buffer-name))) (defun run-python (dedicated cmd) "Run an inferior Python process. @@ -1313,9 +1314,11 @@ with user shells. Runs the hook run). \(Type \\[describe-mode] in the process buffer for a list of commands.)" (interactive) - (python-shell-make-comint - (python-shell-parse-command) - (python-shell-internal-get-process-name))) + (set-process-query-on-exit-flag + (get-buffer-process + (python-shell-make-comint + (python-shell-parse-command) + (python-shell-internal-get-process-name))) nil)) (defun python-shell-get-process () "Get inferior Python process for current buffer and return it." -- 2.39.5