[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25753: 25.2; Python mode shell interaction not working 100%
From: |
npostavs |
Subject: |
bug#25753: 25.2; Python mode shell interaction not working 100% |
Date: |
Sun, 26 Feb 2017 21:14:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
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.
- bug#25753: 25.2; Python mode shell interaction not working 100%, (continued)
- bug#25753: 25.2; Python mode shell interaction not working 100%, npostavs, 2017/02/21
- bug#25753: 25.2; Python mode shell interaction not working 100%, Charles A. Roelli, 2017/02/22
- bug#25753: 25.2; Python mode shell interaction not working 100%, npostavs, 2017/02/23
- bug#25753: 25.2; Python mode shell interaction not working 100%, Charles A. Roelli, 2017/02/24
- bug#25753: 25.2; Python mode shell interaction not working 100%, Charles A. Roelli, 2017/02/25
- bug#25753: 25.2; Python mode shell interaction not working 100%, npostavs, 2017/02/25
- bug#25753: 25.2; Python mode shell interaction not working 100%, Charles A. Roelli, 2017/02/25
- bug#25753: 25.2; Python mode shell interaction not working 100%,
npostavs <=
- bug#25753: 25.2; Python mode shell interaction not working 100%, Charles A. Roelli, 2017/02/28
- bug#25753: 25.2; Python mode shell interaction not working 100%, npostavs, 2017/02/28
- bug#25753: 25.2; Python mode shell interaction not working 100%, Eli Zaretskii, 2017/02/28