]> code.delx.au - gnu-emacs/commitdiff
Make run-python-internal to set process-query-on-exit-flag to nil
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:25 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:25 +0000 (00:03 -0300)
Also python-shell-make-comint now returns the process buffer name.

lisp/progmodes/python.el

index e6faf73547e326d77486f861e6afcb05e0f531d7..53bb9939deecf4326692a7f03b6509dab907e132 100644 (file)
@@ -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."