From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: no echo in python mode Date: Fri, 28 Aug 2015 10:20:49 -0700 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 1440782490 23992 80.91.229.3 (28 Aug 2015 17:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 17:21:30 +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 19:21:25 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 1ZVNLA-0005Bs-BW for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 19:21:24 +0200 Original-Received: from localhost ([::1]:49155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNL9-0007OK-G5 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 13:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNKz-0007OA-1I for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:21:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVNKy-0005sE-3B for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:21:13 -0400 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:36782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVNKx-0005rr-V5 for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 13:21:12 -0400 Original-Received: by obkg7 with SMTP id g7so47739834obk.3 for ; Fri, 28 Aug 2015 10:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=mXg+3w7czGFFEubH/C3l5lYurbxBIifZJmXTw4yRDGY=; b=gcitU9/6ALDjVVUbywXJOXSXC+ienDxHQuODmpZkX5xSyALMVT6ikm+BQ+uWB/hrEt EkSYMLEs7tsGYqX6TyGFfTs3ng+hQt7u5heOlFURAUDHg77XG9dcF+unB36z1kUXUSJN 6dr4Zyr4FC/TNP4MWzXNKSoiwuMEG+gyJGbwRbHr4KZ8pbC6lKyS7Cr5NhnL2vIPsP2Q /HUMw20xLbfyC+CJjO/G9W+nUN0xJpfnu6fsrsYhUlKRRNywmdYLcAW1mk+fiChRJlqu yrTDBpucAeLTxm3zAbFTyzri76f4iGfyRWP0KqmlUfWq+iXG0b/jszfySFA2fJDmmbku UYBg== X-Received: by 10.60.23.73 with SMTP id k9mr6222523oef.25.1440782471098; Fri, 28 Aug 2015 10:21:11 -0700 (PDT) Original-Received: by 10.76.93.103 with HTTP; Fri, 28 Aug 2015 10:20:49 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::232 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:106907 Archived-At: > 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? Yes, that's the correct behavior. The shell prints the output but not the input, as usual - the only difference is that in this case you type the input into a `python-mode` buffer rather than an `inferior-python-mode' buffer. It seems like it should be possible to create a command that does what you were expecting (take the text from the Python buffer, insert it into the REPL buffer, and then `comint-send-input'), but AFAIK such a command doesn't exist by default. -- john