aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-08-18 12:11:43 -0400
committerStefan Monnier2014-08-18 12:11:43 -0400
commit5d3c0a067f8e070b6e5eb81ff4e4f6e1bb71be47 (patch)
treebdc6afa9b301cabe578499d338c7d7462fae4c07
parent73b7592be7270ed49724b33716c109aa95cbc2d0 (diff)
downloademacs-5d3c0a067f8e070b6e5eb81ff4e4f6e1bb71be47.tar.gz
emacs-5d3c0a067f8e070b6e5eb81ff4e4f6e1bb71be47.zip
* lisp/progmodes/python.el (python-shell-prompt-detect): Remove redundant
executable-find. Fixes: debbugs:18244
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/python.el12
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d2ad52e3b07..53707b23670 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12014-08-18 Stefan Monnier <monnier@iro.umontreal.ca> 12014-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/python.el (python-shell-prompt-detect): Remove redundant
4 executable-find (bug#18244).
5
3 * simple.el (self-insert-uses-region-functions): Defvar. 6 * simple.el (self-insert-uses-region-functions): Defvar.
4 7
52014-08-13 Leo Liu <sdl.web@gmail.com> 82014-08-13 Leo Liu <sdl.web@gmail.com>
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 60121ac6b41..a51cff8529e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1894,7 +1894,7 @@ detection and just returns nil."
1894 (let ((code-file (python-shell--save-temp-file code))) 1894 (let ((code-file (python-shell--save-temp-file code)))
1895 ;; Use `process-file' as it is remote-host friendly. 1895 ;; Use `process-file' as it is remote-host friendly.
1896 (process-file 1896 (process-file
1897 (executable-find python-shell-interpreter) 1897 python-shell-interpreter
1898 code-file 1898 code-file
1899 '(t nil) 1899 '(t nil)
1900 nil 1900 nil
@@ -2048,11 +2048,14 @@ uniqueness for different types of configurations."
2048 (or python-shell-virtualenv-path "") 2048 (or python-shell-virtualenv-path "")
2049 (mapconcat #'identity python-shell-exec-path ""))))) 2049 (mapconcat #'identity python-shell-exec-path "")))))
2050 2050
2051(defun python-shell-parse-command () 2051(defun python-shell-parse-command () ;FIXME: why name it "parse"?
2052 "Calculate the string used to execute the inferior Python process." 2052 "Calculate the string used to execute the inferior Python process."
2053 ;; FIXME: process-environment doesn't seem to be used anywhere within
2054 ;; this let.
2053 (let ((process-environment (python-shell-calculate-process-environment)) 2055 (let ((process-environment (python-shell-calculate-process-environment))
2054 (exec-path (python-shell-calculate-exec-path))) 2056 (exec-path (python-shell-calculate-exec-path)))
2055 (format "%s %s" 2057 (format "%s %s"
2058 ;; FIXME: Why executable-find?
2056 (executable-find python-shell-interpreter) 2059 (executable-find python-shell-interpreter)
2057 python-shell-interpreter-args))) 2060 python-shell-interpreter-args)))
2058 2061
@@ -2084,11 +2087,10 @@ uniqueness for different types of configurations."
2084(defun python-shell-calculate-exec-path () 2087(defun python-shell-calculate-exec-path ()
2085 "Calculate exec path given `python-shell-virtualenv-path'." 2088 "Calculate exec path given `python-shell-virtualenv-path'."
2086 (let ((path (append python-shell-exec-path 2089 (let ((path (append python-shell-exec-path
2087 exec-path nil))) 2090 exec-path nil))) ;FIXME: Why nil?
2088 (if (not python-shell-virtualenv-path) 2091 (if (not python-shell-virtualenv-path)
2089 path 2092 path
2090 (cons (format "%s/bin" 2093 (cons (expand-file-name "bin" python-shell-virtualenv-path)
2091 (directory-file-name python-shell-virtualenv-path))
2092 path)))) 2094 path))))
2093 2095
2094(defun python-comint-output-filter-function (output) 2096(defun python-comint-output-filter-function (output)