From: Barry Warsaw Date: Wed, 5 Jul 1995 22:06:50 +0000 (+0000) Subject: (py-shell): cope with make-comint instead of make-shell X-Git-Tag: v1.3b1~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e98f3350f2ea838a487bde43115923477c74d49;p=thirdparty%2FPython%2Fcpython.git (py-shell): cope with make-comint instead of make-shell --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 3c338d3baec0..0b6383b32f1d 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -563,7 +563,8 @@ filter." (progn (require 'shell) (switch-to-buffer-other-window - (make-shell "Python" py-python-command)))) + (apply (if (boundp 'make-shell) 'make-shell 'make-comint) + "Python" py-python-command nil)))) (make-local-variable 'shell-prompt-pattern) (setq shell-prompt-pattern "^>>> \\|^\\.\\.\\. ") (set-process-filter (get-buffer-process (current-buffer))