aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el11
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
1313run). \(Type \\[describe-mode] in the process buffer for a list 1314run). \(Type \\[describe-mode] in the process buffer for a list
1314of commands.)" 1315of 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."