From: Fabián Ezequiel Gallina Date: Tue, 9 Dec 2014 01:32:53 +0000 (-0300) Subject: python.el: Support interpreter paths with spaces X-Git-Tag: emacs-24.4.90~148 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2db939;p=emacs.git python.el: Support interpreter paths with spaces Fixes: debbugs:19289 * lisp/progmodes/python.el (python-shell-parse-command): Quote `python-shell-interpreter`. --- 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 ()