From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25753: 25.2; Python mode shell interaction not working 100% Date: Sun, 26 Feb 2017 21:14:45 -0500 Message-ID: <87innwe5wq.fsf@users.sourceforge.net> References: <83lgt6xbr0.fsf@gnu.org> <87poifjsw2.fsf@users.sourceforge.net> <87poibgfyw.fsf@users.sourceforge.net> <87o9xtf0q6.fsf@users.sourceforge.net> <877f4efifx.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488161655 13262 195.159.176.226 (27 Feb 2017 02:14:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 02:14:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25753@debbugs.gnu.org To: charles@aurox.ch (Charles A. Roelli) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 03:14: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 1ciApC-0002Wl-Af for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 03:14:06 +0100 Original-Received: from localhost ([::1]:49906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciApI-0000dv-15 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 21:14:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciApC-0000dp-Al for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 21:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciAp8-0004Lj-BN for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 21:14:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciAp8-0004Lc-6r for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 21:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciAp7-0007Ok-Ux for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 21:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2017 02:14:01 +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.148816162228405 (code B ref 25753); Mon, 27 Feb 2017 02:14:01 +0000 Original-Received: (at 25753) by debbugs.gnu.org; 27 Feb 2017 02:13:42 +0000 Original-Received: from localhost ([127.0.0.1]:57344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciAon-0007O5-VV for submit@debbugs.gnu.org; Sun, 26 Feb 2017 21:13:42 -0500 Original-Received: from mail-io0-f196.google.com ([209.85.223.196]:34533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciAom-0007Ns-0Z for 25753@debbugs.gnu.org; Sun, 26 Feb 2017 21:13:40 -0500 Original-Received: by mail-io0-f196.google.com with SMTP id n76so2972601ioe.1 for <25753@debbugs.gnu.org>; Sun, 26 Feb 2017 18:13:40 -0800 (PST) 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=0zA/fEA3rTGh9Ya+RHdsb3FK2G7b7tRnHK/okIsyoVw=; b=Dej+cSmLWSjGYvvxfJgFrNm6FOXPmNVQ3wxBYzWJbluRf49XXpgoGCjN62PBOrdll/ MUGUDdj3LBq2hbPdYhFzVMN5xCEoFPwb8n5Nb5azuY9R/bvWy5LQeOqNjqpb+jsxJIim 8xr4olW+F1+nj8Zzpuy0qbAn2PuzJzZ7BUukgTqLNeZ/ssG4Jf8plDkB88PujY3HHOm6 eoULjEjpbdmA0v8ccWIPuLIBS4zHR4V/eiFeuoLi+wfP4FML+3B3EKhKtSy0Ww2tfCq/ zAnC6QImg1x3GR4yq7v0/mWHNYScp+WVrX1YR3Xga9pMuyCBZEcKHOW+5AhVqlK5M1T2 +nVQ== 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=0zA/fEA3rTGh9Ya+RHdsb3FK2G7b7tRnHK/okIsyoVw=; b=mCrIA/68RYSZE5EzTgW0quIG2zXiivOgkZF9v30lu4HHxFq8zAuARuBxxWAaqflpQF dLGczochpQIOqwviN5YPaWr1K4WPHK9Wpx7YBz8oZBY1xZptZZZk2kmxtYE95ObR53XJ fpogU3ZiJ4gyXj+gfS6S79HYfh+M+AHtmLMGGlBlWeGLZKJxWRhunFuEtRb4QD3YUd88 gGjD098JgsZcGHCXT8hq8BhvONODTsdHrr2vY2BZ2zN+KjEY1a/xewY91HSg/jgWDemq My2zBc2LlXuc9d2Xrjz2EC91G3G6p0Takx5e6tJqaVhVrFRGosTYK7Fc5oZEITLr7sz2 3uzA== X-Gm-Message-State: AMke39mGpvmnCfQzjyHBS6I2Ya2g5CsfT4D9rdmoLLANDvAjZmqBzKWcLlnr9CdLW+dubg== X-Received: by 10.107.138.140 with SMTP id c12mr5025673ioj.18.1488161614428; Sun, 26 Feb 2017 18:13:34 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id w75sm3812663itc.21.2017.02.26.18.13.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2017 18:13:33 -0800 (PST) In-Reply-To: (Charles A. Roelli's message of "Sat, 25 Feb 2017 23:28:12 +0100") 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:129856 Archived-At: charles@aurox.ch (Charles A. Roelli) writes: > On Sat, Feb 25 2017 at 09:34:10 am, npostavs@users.sourceforge.net wrote: > >> Possibly setting `comint-process-echoes' could help, though I don't >> understand why there is echoing in the first place. > > Thanks for the pointer to that variable. I ran this: > > (add-hook 'inferior-python-mode-hook (lambda () (setq comint-process-echoes t))) > > and the commands at the prompt stopped echoing, but the support > functions still echoed. So it looks like the problem has to be fixed on > the readline/libedit side of Python. This thread[1] might be somewhat relevant: The problem is that eshell tells subprocesses that they're running in a terminal (e.g., when queried via hIsTerminalDevice), but always echos user input itself regardless of the tty's ECHO attribute. This confuses libedit, which assumes that if it's connected to a terminal then it can turn off echoing in order to run its own rich line editor. [1]: http://glasgow-haskell-users.haskell.narkive.com/vyeVJUEB/problem-with-echo-prompting-in-ghci-visible-in-emacs > So it would seem that `sudo easy_install > gnureadline' is the right thing to run. However that still does not fix > the issue because python2.7/lib-dynload/ comes before > python2.7/site-packages/ (where `gnureadline' is installed) in Python's > $PATH equivalent, `sys.path'. The solution, then, is to reorder the > path somehow or get `readline.so' out of the way (maybe by renaming it > -- cleaner suggestions welcome). I guess renaming should have the least amount of side-effects.