py-shell-name is ignored

Bug #955900 reported by Boris Kheyfets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

It's a re-openning of

https://bugs.launchpad.net/python-mode/+bug/943832

in rev 892 - this bug is not fixed.

I do have:
(setq py-shell-name "/usr/bin/ipython")
in my .emacs

Still, when I open some .py file the value of py-shell-name is `python'. Not `ipython'. Hence - py-execute-buffer opens python instead of ipython.

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Boris,

I'm afraid we have a matter of understanding.

You stated already:

Am 05.03.2012 14:16, schrieb Boris Kheyfets:
> python-mode, rev 856:
>
> hashbang still overrides user's choice: when I press PyShell ->

yes, shebang must take precedence.

it's answered here:
https://answers.launchpad.net/python-mode/+question/190268

Revision history for this message
Andreas Roehler (a-roehler) wrote :

BTW C-u M-x py-execute-buffer should enforce default py-shell-name too

it's at least a docu-bug

Probably we should have basic commands "py-execute-..." with suffix "-force", using the default value of py-shell-name

Changed in python-mode:
importance: Undecided → Medium
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.6
Revision history for this message
Boris Kheyfets (kheyfboris) wrote :

So the bug report in invalid. I'm sorry. Thanks for the python-mode.

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Boris,

your report is valid in that it revealed a problem others would face probably too.
Considered it as a feature request, changed the API slightly, so it may be easier to use.

thanks back,

Andreas

Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.