emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/python.el


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/python.el
Date: Sat, 20 Nov 2004 15:45:20 -0500

Index: emacs/lisp/progmodes/python.el
diff -c emacs/lisp/progmodes/python.el:1.17 emacs/lisp/progmodes/python.el:1.18
*** emacs/lisp/progmodes/python.el:1.17 Fri Jul  2 23:49:50 2004
--- emacs/lisp/progmodes/python.el      Sat Nov 20 20:39:16 2004
***************
*** 1235,1243 ****
    "Switch to the Python process buffer.
  With prefix arg, position cursor at end of buffer."
    (interactive "P")
!   (if (get-buffer python-buffer)
!       (pop-to-buffer python-buffer)
!     (error "No current process buffer.  See variable `python-buffer'"))
    (when eob-p
      (push-mark)
      (goto-char (point-max))))
--- 1235,1247 ----
    "Switch to the Python process buffer.
  With prefix arg, position cursor at end of buffer."
    (interactive "P")
!   ;; Start python unless we have a buffer.
!   (unless (and python-buffer
!              (get-buffer python-buffer))
!     (run-python nil t))
!   (pop-to-buffer python-buffer)
!   ;; Make extra sure python is running in this buffer.
!   (python-proc)
    (when eob-p
      (push-mark)
      (goto-char (point-max))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]