all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lukas Juhrich <lukasjuhrich@wh2.tu-dresden.de>
To: "Clément Pit--Claudel" <clement.pitclaudel@live.com>,
	"Noam Postavsky" <npostavs@users.sourceforge.net>
Cc: 24401@debbugs.gnu.org
Subject: bug#24401: python-shell-completion-native-try returns incorrect results with python 3.5.2
Date: Thu, 27 Oct 2016 03:34:35 +0200	[thread overview]
Message-ID: <3d4d75b1-3de1-4edb-abf3-2dd5b1f75e75@wh2.tu-dresden.de> (raw)
In-Reply-To: <184c70a4-edba-b253-8d7b-2c15d67dacfc@live.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 401 bytes --]

Hi,

On 10.09.2016 06:00, Clément Pit--Claudel wrote:
> Does anyone object to the proposed fix?
>
> Clément.
>

May I as a complete outsider to emacs development ask what the state
on this is?  To me it looks like this just hasn't been done yet.

If having a patch file makes things easier, there is one attached; Let
me know if I can help otherwise.


--
Sincerely,
Lukas Juhrich

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: 0001-Fix-Bug-24401-python-native-completion-warning.patch --]
[-- Type: text/x-patch; name="0001-Fix-Bug-24401-python-native-completion-warning.patch", Size: 1304 bytes --]

From 5919da9446850a3830ea1702c500dd749935dd54 Mon Sep 17 00:00:00 2001
From: Lukas Juhrich <lukasjuhrich@wh2.tu-dresden.de>
Date: Thu, 27 Oct 2016 03:24:58 +0200
Subject: [PATCH] Fix Bug #24401 (python native completion warning)

This commit fixes #24401 by checking for completions using "_" instead

Checking the python processes' completion by completing "" in
`python-shell-completion-native-try` does not work, since an empty
string does not yield any completion in python (at least python3.5).
Thus, `nil` is returned and the completion is regarded unsuccessful.

This commit changes the character to "_" and thus fixes #24401.
---
 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 ad69f87..290cdc8 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3318,7 +3318,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."
-- 
2.10.1


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2016-10-27  1:34 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-09 23:07 bug#24401: python-shell-completion-native-try returns incorrect results with python 3.5.2 Clément Pit--Claudel
2016-09-09 23:30 ` Noam Postavsky
2016-09-10  4:00   ` Clément Pit--Claudel
2016-10-27  1:34     ` Lukas Juhrich [this message]
2016-10-27  3:35       ` Clément Pit--Claudel
2016-10-27  3:55       ` Clément Pit--Claudel
2016-10-29 14:12     ` Clément Pit--Claudel
2016-10-29 14:34       ` Eli Zaretskii
2016-10-29 15:03         ` Clément Pit--Claudel
2016-10-29 15:08           ` Eli Zaretskii
2016-10-31 12:38             ` Clément Pit--Claudel
2016-11-01  0:30               ` npostavs
2016-11-05  1:59                 ` npostavs
2016-11-05  3:28                   ` Clément Pit--Claudel
2016-11-29 16:38 ` bug#24401: Davor Rotim
2016-11-29 17:21   ` bug#24401: Clément Pit--Claudel
2016-11-29 20:27     ` bug#24401: Clément Pit--Claudel
2016-11-29 20:40 ` bug#24401: Davor Rotim
2016-11-29 22:35   ` bug#24401: Clément Pit--Claudel
2016-11-30  9:39 ` bug#24401: Davor Rotim
2016-11-30 14:22   ` bug#24401: Noam Postavsky
2016-11-30 15:09 ` bug#24401: Davor Rotim
2016-12-01  2:57   ` bug#24401: Clément Pit--Claudel
2016-12-01  8:47 ` bug#24401: Davor Rotim
2016-12-01 14:28   ` bug#24401: Clément Pit--Claudel
2016-12-02 16:31   ` bug#24401: Clément Pit--Claudel
2016-12-01 20:23 ` bug#24401: Davor Rotim
2016-12-01 20:40   ` bug#24401: Clément Pit--Claudel
2016-12-01 21:29 ` bug#24401: Davor Rotim
2016-12-01 21:45   ` bug#24401: Clément Pit--Claudel
2016-12-02  7:22     ` bug#24401: Eli Zaretskii
2016-12-02 17:13 ` bug#24401: Davor Rotim
2016-12-02 21:24   ` bug#24401: Clément Pit--Claudel
2016-12-02 21:51 ` bug#24401: Davor Rotim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d4d75b1-3de1-4edb-abf3-2dd5b1f75e75@wh2.tu-dresden.de \
    --to=lukasjuhrich@wh2.tu-dresden.de \
    --cc=24401@debbugs.gnu.org \
    --cc=clement.pitclaudel@live.com \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.