emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 be0bba4 1/2: Unbreak completion in python-mode bu


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-25 be0bba4 1/2: Unbreak completion in python-mode buffers
Date: Wed, 30 Dec 2015 04:26:04 +0000

branch: emacs-25
commit be0bba46a08dacf66a753cdd268ccabe180d8ee5
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 04542cd..c923512 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]