]> git.eshelyaron.com Git - emacs.git/commit
Try "python" before "python3" in python-mode
authorStefan Kangas <stefankangas@gmail.com>
Sun, 29 Sep 2024 21:29:54 +0000 (23:29 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 20:33:28 +0000 (22:33 +0200)
commitd5760f252d7c43998be1e6f16e938a45bad3e504
tree42b0f0a0d445365451e60854765ac56fc3246a5d
parent7ff74089f7d4e528323cf4090cb9662802de2af3
Try "python" before "python3" in python-mode

Prefer whatever version of Python that "python" might point to; use
"python3" if it doesn't exist.  On recent versions of typical GNU/Linux
distributions, "python" either does not exist or it points to Python 3.
In (presumed rare) cases where "python" points to Python 2 instead,
users are now expected to manually customize these variables if they
want to use Python 3.

* lisp/progmodes/python.el (python-interpreter)
(python-shell-interpreter): Prefer "python" to "python3".

Ref:
https://lists.gnu.org/r/emacs-devel/2024-09/msg00885.html
(cherry picked from commit dd4c67907eb3084c6f55828c51bca1675a98376d)
etc/NEWS
lisp/progmodes/python.el