]> code.delx.au - gnu-emacs/commitdiff
Unbreak completion in python-mode buffers
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 30 Dec 2015 04:24:08 +0000 (06:24 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 30 Dec 2015 04:25:48 +0000 (06:25 +0200)
* lisp/progmodes/python.el (python-shell-completion-at-point):
Unbreak in python-mode buffers.

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