XEmacs python-mode question

Thomas Heller theller at python.net
Fri Jan 13 19:39:16 CET 2006


skip at pobox.com writes:

>     Thomas> I'm trying to customize the python interpreter that is used to
>     Thomas> execute my scripts from within WinXP, XEmacs, python-mode
>     Thomas> version $Revision4.70$, but cannot get it to work.
>
>     Thomas> The only thing that works is M-x customize-group python, and
>     Thomas> change the value of 'Python Command'.  However, this changes the
>     Thomas> interpreter for all buffers, but I want different buffers use
>     Thomas> different interpreters.  Is that possible?
>
> Thomas,
>
> py-python-command is not buffer local.  Try executing
>
>     (make-variable-buffer-local 'py-python-command)
>
> and let me know if that allows your Local Variables setting to work.

No, it doesn't work.  The only ugly workaround that I found was to use
py-toggle-shells, and create a jython.bat file which invokes the other
interpreter.

Thomas



More information about the Python-list mailing list