From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Re: no echo in python mode Date: Fri, 28 Aug 2015 11:09:19 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1440774589 12509 80.91.229.3 (28 Aug 2015 15:09:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 15:09:49 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 28 17:09:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVLHd-00079o-JX for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 17:09:37 +0200 Original-Received: from localhost ([::1]:48353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLHc-0007yt-UU for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 11:09:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLHO-0007yJ-Jm for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 11:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVLHN-00042I-E6 for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 11:09:22 -0400 Original-Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:33198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVLHN-000424-3F for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 11:09:21 -0400 Original-Received: by wieo17 with SMTP id o17so18927087wie.0 for ; Fri, 28 Aug 2015 08:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4xD0UFrs38ASArx2LvpVw4y1yAI/FVO1sWp22oNQoU4=; b=qCA7YeY6XpePV3FeVLwLfx6IjY97QJ7aBjIq5d90V1V75PxdIc86c7HUIUoynu9Ua7 1LAyCQAmoqZzIPLAC8NkZxTqboXskKeYPKmBDmIUiUEb7/KMiXILmsjNvhnWKptfqvba NoZvUQWklH1mbFnbhsd4kijUr1nlGlvYggyVFB6JUZUzwBqY/LGXp67jDw9AqsVTYMWp UrB98PO7VE8vC5yKJpdQoqMV3s0S4Skiakcn2cyNV+iPBdluUuPPzRag90ZxeEpqMZQy eC9O7JrHm3cpx9z8t1xYZilDsa+40KCg0n8o/catBUr2SpavkCStmVLolylw4HO4AK0f d/EA== X-Received: by 10.194.109.36 with SMTP id hp4mr13070934wjb.4.1440774559542; Fri, 28 Aug 2015 08:09:19 -0700 (PDT) Original-Received: by 10.28.139.67 with HTTP; Fri, 28 Aug 2015 08:09:19 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106903 Archived-At: 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 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 >