Unbreak completion in python-mode buffers

* lisp/progmodes/python.el (python-shell-completion-at-point):
Unbreak in python-mode buffers.
This commit is contained in:
Dmitry Gutov 2015-12-30 06:24:08 +02:00
parent e823c34072
commit be0bba46a0

View file

@ -3569,7 +3569,9 @@ using that one instead of current buffer's process."
(forward-char (length (match-string-no-properties 0))) (forward-char (length (match-string-no-properties 0)))
(point)))) (point))))
(end (point)) (end (point))
(prompt-boundaries (python-util-comint-last-prompt)) (prompt-boundaries
(with-current-buffer (process-buffer process)
(python-util-comint-last-prompt)))
(prompt (prompt
(with-current-buffer (process-buffer process) (with-current-buffer (process-buffer process)
(when prompt-boundaries (when prompt-boundaries