help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no echo in python mode


From: Shiyuan
Subject: Re: no echo in python mode
Date: Fri, 28 Aug 2015 11:09:19 -0400

A bit more details for reproducing the problem. I can reproduce the problem
in multiple ubuntu 14.04 machine + emacs 24 .3.1. To ensure there is
absolutely no interference of third party. I started with a fresh ubuntu
14.04. By "Fresh", I mean I only installed emacs by `apt-get install
emacs24`. Also there is no bash and emacs customer setup. Then I did the
following :

1). emacs -Q tmp.py
2). In tmp.py buffer:
a = 3 + 1
print a

3). C-c C-c which runs `python-shell-send-buffer`
4). Mini-buffer prompts: Run Python: /usr/bin/python -i
      Make dedicated process?(y or n) --- y
      Mini-buffer prompts: sent-eldoc-setup-code
5). This is what is shown in the python shell buffer:
 
--------------------------------------------------------------------------------------
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>> >>> >>> 4
>>>
----------------------------------------------------------------------------------------
Note that the command executed is not shown but only the result.  Is it the
correct behavior? No echoing seems strange to me. Can I make the python
shell buffer echo whatever commands sent to it?

On Sun, Aug 23, 2015 at 12:38 PM, Shiyuan <address@hidden> wrote:

> Hi,
>      I am using GNU emacs 24.3.1 & python 2.7.6 under Ubuntu 14.04.  I
> started the emacs by `emacs -Q file.py`. When I sent the selected region by
> `C-c C-r` which runs(python-shell-send-region START END), the code is
> executed but  the code is not echoed in the python shell. This seems weird.
> Can I enabled the shell echoing for "python-shell-send-region". Thank you.
>
> Shiyuan
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]