From be0bba46a08dacf66a753cdd268ccabe180d8ee5 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 30 Dec 2015 06:24:08 +0200 Subject: [PATCH] Unbreak completion in python-mode buffers * lisp/progmodes/python.el (python-shell-completion-at-point): Unbreak in python-mode buffers. --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 04542cdff3d..c9235129f98 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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 -- 2.39.5