summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2015-12-30 06:24:08 +0200
committerDmitry Gutov <dgutov@yandex.ru>2015-12-30 06:25:48 +0200
commitbe0bba46a08dacf66a753cdd268ccabe180d8ee5 (patch)
tree9ea4a0443eed60d71144ca3274e04ba89849c5fb
parente823c34072bf045800d91e12c7ddb61fa23c6e30 (diff)
downloademacs-be0bba46a08dacf66a753cdd268ccabe180d8ee5.tar.gz
Unbreak completion in python-mode buffers
* lisp/progmodes/python.el (python-shell-completion-at-point): Unbreak in python-mode buffers.
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 3 insertions, 1 deletions
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