From c2db9393595559ccddcccbb8d1a85e1167867714 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Mon, 8 Dec 2014 22:32:53 -0300 Subject: [PATCH] python.el: Support interpreter paths with spaces Fixes: debbugs:19289 * lisp/progmodes/python.el (python-shell-parse-command): Quote `python-shell-interpreter`. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/python.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 26b09a68d02..d946a2eb586 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-12-09 Fabián Ezequiel Gallina + + * progmodes/python.el (python-shell-parse-command): Quote + `python-shell-interpreter`. (Bug#19289) + 2014-12-04 Stefan Monnier * progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 521f0b5be19..357ca5b56d8 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2086,7 +2086,8 @@ uniqueness for different types of configurations." (exec-path (python-shell-calculate-exec-path))) (format "%s %s" ;; FIXME: Why executable-find? - (executable-find python-shell-interpreter) + (shell-quote-argument + (executable-find python-shell-interpreter)) python-shell-interpreter-args))) (defun python-shell-calculate-process-environment () -- 2.39.2