From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28580: python.el: native completion setup failed Date: Thu, 12 Oct 2017 23:28:42 -0400 Message-ID: <877evzbuad.fsf@users.sourceforge.net> References: <87lgl4m5uo.fsf@users.sourceforge.net> <87a81km1d4.fsf@users.sourceforge.net> <877ewom0id.fsf@users.sourceforge.net> <874lrrnaxq.fsf@users.sourceforge.net> <871smvn9oo.fsf@users.sourceforge.net> <87y3p3ltzx.fsf@users.sourceforge.net> <87tvzrlslv.fsf@users.sourceforge.net> <87o9pzlr5n.fsf@users.sourceforge.net> <873770ev7l.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1507865358 28110 195.159.176.226 (13 Oct 2017 03:29:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 03:29:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: 28580@debbugs.gnu.org To: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 13 05:29:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qem-0005dZ-Tx for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Oct 2017 05:29:05 +0200 Original-Received: from localhost ([::1]:48269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2qeu-0003kh-4O for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 23:29:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2qeo-0003jT-0b for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2qek-00058m-Ss for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2qek-00058Y-O9 for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2qek-0007mx-Fh for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 23:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2017 03:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28580-submit@debbugs.gnu.org id=B28580.150786533129923 (code B ref 28580); Fri, 13 Oct 2017 03:29:02 +0000 Original-Received: (at 28580) by debbugs.gnu.org; 13 Oct 2017 03:28:51 +0000 Original-Received: from localhost ([127.0.0.1]:36577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qeZ-0007mU-Jq for submit@debbugs.gnu.org; Thu, 12 Oct 2017 23:28:51 -0400 Original-Received: from mail-it0-f45.google.com ([209.85.214.45]:43740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2qeY-0007mC-4L; Thu, 12 Oct 2017 23:28:50 -0400 Original-Received: by mail-it0-f45.google.com with SMTP id k70so14709561itk.0; Thu, 12 Oct 2017 20:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=SK/vJzQFDHi136EJLUTi94oqUKUr6m2i2rEfCe/CMTc=; b=OGYlZZsGHZl7Fi47Ht/6F1E515SYFjPEzN0HuzMYViAsQc22uLA4Ux7bZKZs5YTear UVEx3uQaangv3j9MX3Z47Ncv839TWDpcAtx2dR2sfJw18Zz/9bDAVzbX5Sqy1cKM5lbk aOvs0nrKS29BY7Dk0K1YevW7X+ltD69HSkIMwIsW+VLCQj+ZriDddNIFBaeJXxxxk6bS SR7u7EWmJkJvAUCrrDi4a4kF2CQXTy3jh87GaZJ9sTcD4TOjbNJ741T+VoaGpVUDoPOs 5PPaFIt+VHxFo7U1RUuhNc9tlhsWxiiur4ykMtg8hD1GZwWh0GwflhzE3pF+GHn4o/tI NzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=SK/vJzQFDHi136EJLUTi94oqUKUr6m2i2rEfCe/CMTc=; b=j+qT1W9NEJ+MVzQUWEpVLF8VMhC7eogkAr2VbeS8UV+ReTMKX7getnvfpmTabEi05v ScgKiB8h5Q/WneD64UJbPKNjf8N7okXLS4/375hoeA1cwQd551ObZJxBRcwkh64qZv4r icWRqkCeRxXnN+96QlMP130ZdDKV13HXjUenUDwQ7Mm6aLSl7lBkHHHd5a9zPNBsjD3Y twFbj6fZZ94v/l63qLyK63SEzSACzBVQYZ7crYN6XzmfspHXEdcp0F+1EX5GnqnjI0Mx vVzSMuPK8ou/TVHd5J86YpTXlQ3dGY4rrOYr6GCEvIt7x7iTc9JHUWU/gv8cdVILQ0Ea 5cgg== X-Gm-Message-State: AMCzsaXspX2hQg4PW0wXteRS8qDRDmYm3vzMVjcSDhkxZTml+IHwo3ip sOKU3C1phdZkga9/53EyxKF5tw== X-Google-Smtp-Source: ABhQp+TiTS7cR0FHLtWUE4LcGm21pMvkOpaM9Q70Sbi65ayLBWA4E1A9vT+xIs17N4WERnbKDxQYjQ== X-Received: by 10.36.81.208 with SMTP id s199mr486577ita.31.1507865324217; Thu, 12 Oct 2017 20:28:44 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m32sm155300iti.20.2017.10.12.20.28.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Oct 2017 20:28:43 -0700 (PDT) In-Reply-To: (Noam Postavsky's message of "Thu, 12 Oct 2017 15:40:56 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138320 Archived-At: --=-=-= Content-Type: text/plain tags 28580 + patch quit Noam Postavsky writes: > I've now installed pyreadline on my Windows box. Unfortunately, as far > as I can tell there is no way to make native completion work on > Windows, readline simply won't work unless python is run from a > console. So we should just disable it under windows to stop the > annoying warning. I.e.: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Disable-python-native-completion-on-w32-Bug-28580.patch Content-Description: patch >From 1cb9846462844dfbbc34a02bdbdc66de9ce85c20 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 12 Oct 2017 23:25:13 -0400 Subject: [PATCH] Disable python native completion on w32 (Bug#28580) * lisp/progmodes/python.el (python-shell-completion-native-disabled-interpreters): For windows-nt systems, put an empty string to match interpreters. --- lisp/progmodes/python.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f79d9a47d3..895117b9ee 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3304,8 +3304,9 @@ python-shell-completion-string-code (defcustom python-shell-completion-native-disabled-interpreters ;; PyPy's readline cannot handle some escape sequences yet. Native ;; completion was found to be non-functional for IPython (see - ;; Bug#25067). - (list "pypy" "ipython") + ;; Bug#25067). Native completion doesn't work on w32 (Bug#28580). + (if (eq system-type 'windows-nt) '("") + '("pypy" "ipython")) "List of disabled interpreters. When a match is found, native completion is disabled." :version "25.1" -- 2.11.0 --=-=-=--