diff options
| author | Dmitry Gutov | 2015-12-30 06:24:08 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2015-12-30 06:25:48 +0200 |
| commit | be0bba46a08dacf66a753cdd268ccabe180d8ee5 (patch) | |
| tree | 9ea4a0443eed60d71144ca3274e04ba89849c5fb | |
| parent | e823c34072bf045800d91e12c7ddb61fa23c6e30 (diff) | |
| download | emacs-be0bba46a08dacf66a753cdd268ccabe180d8ee5.tar.gz emacs-be0bba46a08dacf66a753cdd268ccabe180d8ee5.zip | |
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.el | 4 |
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." | |||
| 3569 | (forward-char (length (match-string-no-properties 0))) | 3569 | (forward-char (length (match-string-no-properties 0))) |
| 3570 | (point)))) | 3570 | (point)))) |
| 3571 | (end (point)) | 3571 | (end (point)) |
| 3572 | (prompt-boundaries (python-util-comint-last-prompt)) | 3572 | (prompt-boundaries |
| 3573 | (with-current-buffer (process-buffer process) | ||
| 3574 | (python-util-comint-last-prompt))) | ||
| 3573 | (prompt | 3575 | (prompt |
| 3574 | (with-current-buffer (process-buffer process) | 3576 | (with-current-buffer (process-buffer process) |
| 3575 | (when prompt-boundaries | 3577 | (when prompt-boundaries |