emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 dbb3410: python.el: Fix detection of native compl


From: Clément Pit--Claudel
Subject: [Emacs-diffs] emacs-25 dbb3410: python.el: Fix detection of native completion in Python 3 (bug #24401)
Date: Mon, 31 Oct 2016 12:36:07 +0000 (UTC)

branch: emacs-25
commit dbb341022870ecad4c9177485a6770a355633cc0
Author: Clément Pit--Claudel <address@hidden>
Commit: Clément Pit--Claudel <address@hidden>

    python.el: Fix detection of native completion in Python 3 (bug #24401)
    
    With Python 3.5, (python-shell-completion-native-get-completions ... "")
    would return an empty list, causing python.el to think that native
    completion was unavailable (the difference between Python 2 and Python 3
    is due to https://bugs.python.org/issue25660).
    
    * lisp/progmodes/python.el (python-shell-completion-native-try): Use "_"
      to check whether native completion is available instead of "".
---
 lisp/progmodes/python.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 49f7bcf..3fae398 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3296,7 +3296,7 @@ When a match is found, native completion is disabled."
          python-shell-completion-native-try-output-timeout))
     (python-shell-completion-native-get-completions
      (get-buffer-process (current-buffer))
-     nil "")))
+     nil "_")))
 
 (defun python-shell-completion-native-setup ()
   "Try to setup native completion, return non-nil on success."



reply via email to

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