changes to get ipython.el to work with the latest python-mode.el #938

Closed
wants to merge 1 commit into
from
View
9 docs/emacs/ipython.el
@@ -229,9 +229,12 @@ the second for a 'normal' command, and the third for a multiline command.")
(t ; default (backg-mode isn't always set by XEmacs)
"LightBG")))
py-python-command-args))
- (unless (equal ipython-backup-of-py-python-command py-python-command)
- (setq ipython-backup-of-py-python-command py-python-command))
- (setq py-python-command ipython-command))
+ (when (boundp 'py-python-command)
+ (unless (equal ipython-backup-of-py-python-command py-python-command)
+ (setq ipython-backup-of-py-python-command py-python-command)))
+ (setq py-python-command ipython-command)
+ (when (boundp 'py-shell-name)
+ (setq py-shell-name ipython-command)))
;; MODIFY py-shell so that it loads the editing history