user configured `py-shell-name' is not honored by 'py-guess-default-python'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
suppose I have configured my py-shell-name like
(add-hook 'python-mode-hook
(lambda ()
(setq py-shell-name "python3.2")))
and in my file if shebang only contains python. py-guess-
possible simple fix might be
=== modified file 'python-mode.el'
*** python-mode.el 2012-01-22 15:14:14 +0000
--- python-mode.el 2012-01-22 17:12:51 +0000
***************
*** 4978,4984 ****
(defun py-guess-
"If any Python is installed. Used by `py-shell' if `py-shell-name' is neither selected nor has a customized default value. "
(interactive)
! (let* ((cmd (or (py-choose-shell) "python"))
(erg (executable-find cmd)))
(when (interactive-p)
(if erg
--- 4978,4984 ----
(defun py-guess-
"If any Python is installed. Used by `py-shell' if `py-shell-name' is neither selected nor has a customized default value. "
(interactive)
! (let* ((cmd (or py-shell-name (py-choose-shell) "python"))
(erg (executable-find cmd)))
(when (interactive-p)
(if erg
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.5 |
importance: | Undecided → Medium |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Hello Andreas.,
I was wondering, is it okay to post bug reports in the mailling list instead.?