From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.bugs Subject: bug#25753: 25.2; Python mode shell interaction not working 100% Date: Wed, 22 Feb 2017 20:43:24 +0100 Message-ID: References: <83lgt6xbr0.fsf@gnu.org> <87poifjsw2.fsf@users.sourceforge.net> <87poibgfyw.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487792664 16303 195.159.176.226 (22 Feb 2017 19:44:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2017 19:44:24 +0000 (UTC) Cc: 25753@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 20:44:20 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 1cgcpb-0003Qz-R9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 20:44:09 +0100 Original-Received: from localhost ([::1]:55028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgcph-00061h-Nu for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 14:44:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgcpb-00061R-Pl for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:44:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgcpW-0008Ei-Tu for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:44:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgcpW-0008EX-Q6 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgcpW-0001Iz-Ei for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 14:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: charles@aurox.ch (Charles A. Roelli) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2017 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25753-submit@debbugs.gnu.org id=B25753.14877926194981 (code B ref 25753); Wed, 22 Feb 2017 19:44:02 +0000 Original-Received: (at 25753) by debbugs.gnu.org; 22 Feb 2017 19:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcp8-0001IH-VP for submit@debbugs.gnu.org; Wed, 22 Feb 2017 14:43:39 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:48839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcp7-0001I3-1f for 25753@debbugs.gnu.org; Wed, 22 Feb 2017 14:43:37 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id 9A14D22372 for <25753@debbugs.gnu.org>; Wed, 22 Feb 2017 19:40:27 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-type:content-type:mime-version:message-id:in-reply-to :date:date:references:subject:subject:to:from:from; s=dkim; t= 1487792426; x=1488656427; bh=JiPOrV6Ju1Z6LseOFemq1x1VohaFVez3y9P 38nXjmZM=; b=bMIs0nVEpKjtGH0Wpv5pvEoy5Uo1BwoS95vaYM18z6xLktZXQgZ oPrKroatiToc9XeSEtsaukdlcsrr1hUx0+zwKEs/n3xAu2obBgs/Gvq2yLvTE9oa AKA2ISot3CKX2M/D6MCkvG67lZlkTMjhhHsA66Y43B/sErB5n3UCmMKI= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0atgWrHLu0Y5 for <25753@debbugs.gnu.org>; Wed, 22 Feb 2017 19:40:26 +0000 (UTC) Original-Received: from gray (54.4.4.85.dynamic.wline.res.cust.swisscom.ch [85.4.4.54]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 572802236D; Wed, 22 Feb 2017 19:40:22 +0000 (UTC) In-Reply-To: <87poibgfyw.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Tue, 21 Feb 2017 20:40:55 -0500") 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:129664 Archived-At: > As I've said, I don't think rc2 would change this, but since it's come > out now, please test it. Tested, and it has the same problem. Here is what *Python* normally looks like at the start, run from M-x run-python in emacs -Q: Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import codecs, os;__pyfile = codecs.open('''/var/folders/WP/WPe0Q1iAGc0J7iI6J50jcU+++TI/-Tmp-/py16611qgD''', encoding='''utf-8''');__code = __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/WP/WPe0Q1iAGc0J7iI6J50jcU+++TI/-Tmp-/py16611qgD''');exec(compile(__code, '''/var/folders/WP/WPe0Q1iAGc0J7iI6J50jcU+++TI/-Tmp-/py16611qgD''', 'exec')); python.el: native completion setup loaded It seems like the line starting with ">>> " should not be printed, if 's test output is deemed to be running more or less correctly. Maybe that can point us in the right direction? > Can you test the python code from python-shell-completion-native-setup > outside of Emacs, e.g., save it to a file called 'native-completion.py' > and then run 'python -i native-completion.py' and then type an > underscore and hit . I get the following: >>> ___package__ __PYTHON_EL_native_completion_setup __name__ __doc__ __import__ __debug__ Interestingly, none of the dummy completions pop up. > Can you try load the attached file in Emacs? Does it show similar > output in the "*py native complete test*" buffer? > > emacs -Q -l py-native-completion.el I get no completions with this -- here is all that shows up: Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> python.el: native completion setup loaded >>> > Also post the contents of buffer " *Python completions redirect*" > after doing M-x run-python. - emacs -Q - M-x run-python - C-x b " *Python completions redirect*" It's this: "_ ^H^H" (space in the middle is a tab character).