diff options
| author | Fabián Ezequiel Gallina | 2014-12-08 22:32:53 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-12-08 22:32:53 -0300 |
| commit | c2db9393595559ccddcccbb8d1a85e1167867714 (patch) | |
| tree | 53fb3cef4c6e6a06da39e139c06dd5ecd9a6a54b | |
| parent | d83f3299095c52ffb5bb01e30c41c6e1077dee81 (diff) | |
| download | emacs-c2db9393595559ccddcccbb8d1a85e1167867714.tar.gz emacs-c2db9393595559ccddcccbb8d1a85e1167867714.zip | |
python.el: Support interpreter paths with spaces
Fixes: debbugs:19289
* lisp/progmodes/python.el (python-shell-parse-command): Quote
`python-shell-interpreter`.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 26b09a68d02..d946a2eb586 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-12-09 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/python.el (python-shell-parse-command): Quote | ||
| 4 | `python-shell-interpreter`. (Bug#19289) | ||
| 5 | |||
| 1 | 2014-12-04 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-12-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning | 8 | * 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." | |||
| 2086 | (exec-path (python-shell-calculate-exec-path))) | 2086 | (exec-path (python-shell-calculate-exec-path))) |
| 2087 | (format "%s %s" | 2087 | (format "%s %s" |
| 2088 | ;; FIXME: Why executable-find? | 2088 | ;; FIXME: Why executable-find? |
| 2089 | (executable-find python-shell-interpreter) | 2089 | (shell-quote-argument |
| 2090 | (executable-find python-shell-interpreter)) | ||
| 2090 | python-shell-interpreter-args))) | 2091 | python-shell-interpreter-args))) |
| 2091 | 2092 | ||
| 2092 | (defun python-shell-calculate-process-environment () | 2093 | (defun python-shell-calculate-process-environment () |