Set PYTHONUNBUFFERED on shell startup.
commit238c052fdb9da3b1f96c09809461b70813c5bebc
authorFabián Ezequiel Gallina <galli.87@gmail.com>
Sat, 22 Nov 2014 23:09:30 +0000 (22 20:09 -0300)
committerFabián Ezequiel Gallina <galli.87@gmail.com>
Sat, 22 Nov 2014 23:09:30 +0000 (22 20:09 -0300)
tree11fe1953832ceba6980ef0215383b36131d37ad9
parentbd3625c432ee3d05ae4316d3b0ad2c0225e6d532
Set PYTHONUNBUFFERED on shell startup.

Fixes: debbugs:18595

* lisp/progmodes/python.el (python-shell-unbuffered): New var.
(python-shell-calculate-process-environment): Use it.

* test/automated/python-tests.el
(python-shell-calculate-process-environment-4)
(python-shell-calculate-process-environment-5): New tests.
(python-shell-make-comint-3): Use file-equal-p.
(python-shell-get-or-create-process-1)
(python-shell-get-or-create-process-2)
(python-shell-get-or-create-process-3): Fix interpreter for
Windows.
lisp/ChangeLog
lisp/progmodes/python.el
test/ChangeLog
test/automated/python-tests.el