[OS X Emacs] Aquamacs 2.3 ignoring customized py-python-command through ipython

Graham Taylor essex_green at hotmail.com
Tue Aug 9 01:03:12 EDT 2011

Hello,In Aquamacs 2.1 I was able to customize my python shell in python-mode by setting the following in my Preferences.el:
(setq ipython-command "ipython-2.7")(require 'ipython)(setq py-python-command-args '("-pylab" "-colors" "Linux"))
Once upgrading to Aquamacs 2.3 (which also updates to python-mode 6.0) -without any changes to Preferences.el- invoking the shell gets me the standard python shell:
Proc   Status	Buffer	 Tty	      Command----   ------	------	 ---	      -------Python run	*Python* /dev/ttys009 python -i -colors LightBG
I can see that "python" rather than "ipython" is running (by viewing the process output above).Also I get an error where python cannot parse the "-colors" command-line option (whereas ipython could).
Traceback (most recent call last):  File "<string>", line 1, in <module>NameError: name 'olors' is not defined>>> 
So it appears that the new Aquamacs is simply ignoring py-python-command.If I M-x describe-variable on py-python-command, I see that it's set:
py-python-command is a variable defined in `python-mode.el'.Its value is "ipython-2.7"
  This variable is potentially risky when used as a file local variable.
Documentation:*Shell command used to start Python interpreter.
But it's just getting ignored (i.e. python, rather than ipython, is the shell). Anyone have any clue what's going on? I've tried a minimal Preferences.el but I get the same behaviour. Reverting back to Aquamacs 2.1 gives me the desired behaviour (i.e. ipython is the shell).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110809/e50a7495/attachment.html>

More information about the MacOSX-Emacs mailing list