From: Dmitry Gutov Date: Wed, 30 Dec 2015 04:24:08 +0000 (+0200) Subject: Unbreak completion in python-mode buffers X-Git-Tag: emacs-25.0.90~321 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=be0bba46a08dacf66a753cdd268ccabe180d8ee5;p=emacs.git Unbreak completion in python-mode buffers * lisp/progmodes/python.el (python-shell-completion-at-point): Unbreak in python-mode buffers. --- 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