all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: no echo in python mode
Date: Fri, 28 Aug 2015 11:09:19 -0400	[thread overview]
Message-ID: <CAOm4EMt-6hf2KBgF_zR51gozy0o2Gh+qWkfwyR839AU58VdndA@mail.gmail.com> (raw)
In-Reply-To: <CAOm4EMsaKkV7MaZ9BF7Oy1N47jX24fX16Hsr8-xxJ2s9qXmKBA@mail.gmail.com>

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 <gshy2014@gmail.com> 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	other threads:[~2015-08-28 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 16:38 no echo in python mode Shiyuan
2015-08-28 15:09 ` Shiyuan [this message]
2015-08-28 17:20   ` John Mastro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOm4EMt-6hf2KBgF_zR51gozy0o2Gh+qWkfwyR839AU58VdndA@mail.gmail.com \
    --to=gshy2014@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.