diff --git a/Misc/python-mode.el b/Misc/python-mode.el index e9d38e1bb983..aed8df4d85e9 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -1149,7 +1149,7 @@ It is added to `interpreter-mode-alist' and `py-choose-shell'. ("python" . python-mode)))) (while modes (when (not (assoc (car modes) interpreter-mode-alist)) - (push modes interpreter-mode-alist)) + (push (car modes) interpreter-mode-alist)) (setq modes (cdr modes)))) (when (not (or (rassq 'python-mode auto-mode-alist)