]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/python.el
Unbreak completion in python-mode buffers
[gnu-emacs] / lisp / progmodes / python.el
index 04542cdff3dd810069a6d1d58fbe854bffe70a00..c9235129f9862fa2ea595c4f2ee8b645cb222432 100644 (file)
@@ -3569,7 +3569,9 @@ using that one instead of current buffer's process."
               (forward-char (length (match-string-no-properties 0)))
               (point))))
          (end (point))
-         (prompt-boundaries (python-util-comint-last-prompt))
+         (prompt-boundaries
+          (with-current-buffer (process-buffer process)
+            (python-util-comint-last-prompt)))
          (prompt
           (with-current-buffer (process-buffer process)
             (when prompt-boundaries