From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:25 +0000 (-0300) Subject: Make run-python-internal to set process-query-on-exit-flag to nil X-Git-Tag: emacs-24.2.90~1199^2~538 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a0686d71f63440b119bcf671eea7409f2476bef9;p=emacs.git Make run-python-internal to set process-query-on-exit-flag to nil Also python-shell-make-comint now returns the process buffer name. --- 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."