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: Thu, 16 Feb 2017 17:07:48 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1487265855 28444 195.159.176.226 (16 Feb 2017 17:24:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 17:24:15 +0000 (UTC) To: 25753@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 18:24:11 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 1cePmg-0006Od-ML for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 18:23:59 +0100 Original-Received: from localhost ([::1]:48185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cePml-0000kv-LR for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 12:24:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceOcE-0005sZ-NK for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:09:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceOcA-0004oW-Lu for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:09:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceOcA-0004oO-Hy for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ceOcA-0003GQ-Cd for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:09: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: Thu, 16 Feb 2017 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148726129912481 (code B ref -1); Thu, 16 Feb 2017 16:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2017 16:08:19 +0000 Original-Received: from localhost ([127.0.0.1]:42392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceObS-0003FF-T1 for submit@debbugs.gnu.org; Thu, 16 Feb 2017 11:08:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceObR-0003F3-1Q for submit@debbugs.gnu.org; Thu, 16 Feb 2017 11:08:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceObK-0004H6-QT for submit@debbugs.gnu.org; Thu, 16 Feb 2017 11:08:11 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceObK-0004H2-Ml for submit@debbugs.gnu.org; Thu, 16 Feb 2017 11:08:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceObH-0004ue-Eh for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:08:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceObD-0004E5-Bx for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:08:07 -0500 Original-Received: from sinyavsky.aurox.ch ([37.35.109.145]:49901) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceObD-000497-1o for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 11:08:03 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id CCA0D22363 for ; Thu, 16 Feb 2017 16:04:53 +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-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:to:from:from; s=dkim; t= 1487261093; x=1488125094; bh=xq2dVbOf/GP8vuJVdjrrCf9h5rWhmdiTrQ7 xRv40VQk=; b=AkTzrDp8qvxZqzF4gajg84mAqs0LsWg31IGPgChEpnRE5K3dULn FeAvYRS2Yzsnm9jdBR3rGA128E0b/giLNyg06j72LHruNsHpP+oYl3K3tJngDsAG FOHaQLPHSEjw9gTgji2+WMZ6JlEqfAVmVlkyL6Q/0HGfIa9Ws5+eathg= 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 noOm1J_-Cx4U for ; Thu, 16 Feb 2017 16:04:53 +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 E108D2233E for ; Thu, 16 Feb 2017 16:04:52 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:129411 Archived-At: In emacs 25.2 (rc1) and 25.1, interaction with the Python shell does not seem to be working fully. Python version is '2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]', and this is on Snow Leopard. - emacs -Q - open any Python file - M-x run-python, and this pops up: Warning (python): Your =E2=80=98python-shell-interpreter=E2=80=99 doesn= =E2=80=99t seem to support readline, yet =E2=80=98python-shell-completion-native=E2=80=99 wa= s t and "python" is not part of the =E2=80=98python-shell-completion-native-disabled-interpreters=E2=80=99 li= st. Native completions have been disabled locally. =20=20 [and yet `import readline, rlcompleter' works fine for me] - quit that warning, and the *Python* shell states "python.el: native completion setup loaded". - test out completion in the shell, it seems to be working okay (`import sys RET sys . TAB' shows the attributes of `sys'). Not sure if this is `native' completion though. - switch to the Python file. Place point over a module, global variable, function, or function definition, and this pops up in the echo area (meant to be eldoc documentation, I think): import codecs, os; __pyfile =3D codecs.open('''/var/folders/WP/WPe0Q1iAGc0J7iI6J50jcU+++TI/-= Tmp-/py1883fcQ''',encoding=3D'''utf-8'''); __code =3D __pyfile.read().encode('''utf-8'''); __pyfile.close(); os.remove('''/var/folders/WP/WPe0Q1iAGc0J7iI6J50jcU+++TI/-Tmp-/py1883fcQ'= ''); exec(compile(__code,'''/path/to/python/buffer/here''','exec')); =20=20 [some line breaks included for readability] The same sort of thing is returned by calling, say, `(python-ffap-module-path "twisted")'. Any pointers on fixing this? In GNU Emacs 25.2.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 1= 0.6.8 (Build 10K549)) of 2017-02-07 built on gray Windowing system distributor 'Apple', version 10.3.1038 Configured using: 'configure --with-modules' Configured features: JPEG RSVG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES