From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17304: Python mode delays evaluation Date: Sat, 03 May 2014 09:20:38 +0300 Message-ID: <83bnvf1iyx.fsf@gnu.org> References: <1vppjvwtjg.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1399098087 24751 80.91.229.3 (3 May 2014 06:21:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 06:21:27 +0000 (UTC) Cc: dalokmarcinak@gmail.com, 17304@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 03 08:21:19 2014 Return-path: Envelope-to: geb-bug-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 1WgTK2-00048W-BR for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 08:21:18 +0200 Original-Received: from localhost ([::1]:47674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgTK1-0000Ex-Rx for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 02:21:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgTJt-0000E2-6J for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 02:21:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgTJn-0003qg-0q for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 02:21:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgTJm-0003qc-TK for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 02:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WgTJm-0004a5-JL for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 02:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 May 2014 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17304 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17304-submit@debbugs.gnu.org id=B17304.139909803217546 (code B ref 17304); Sat, 03 May 2014 06:21:02 +0000 Original-Received: (at 17304) by debbugs.gnu.org; 3 May 2014 06:20:32 +0000 Original-Received: from localhost ([127.0.0.1]:49049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgTJH-0004Yv-7F for submit@debbugs.gnu.org; Sat, 03 May 2014 02:20:31 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37640) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgTJD-0004Yd-Lu for 17304@debbugs.gnu.org; Sat, 03 May 2014 02:20:28 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N4Z00700I7PBN00@a-mtaout22.012.net.il> for 17304@debbugs.gnu.org; Sat, 03 May 2014 09:20:21 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4Z0065EIXWUY90@a-mtaout22.012.net.il>; Sat, 03 May 2014 09:20:21 +0300 (IDT) In-reply-to: <1vppjvwtjg.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88570 Archived-At: > From: Glenn Morris > Date: Fri, 02 May 2014 21:16:35 -0400 > Cc: 17304@debbugs.gnu.org > > Márton Marczell wrote: > > > When I run a Python 3.3.4 prompt inside Emacs 24.3 on Windows 7, correct > > commands are evaluated immediately, but incorrect ones are delayed (I have > > to press Enter one more time), as seen below: > > > > >>> 1 > > 1 > > >>> nonsense > > >>> > > Traceback (most recent call last): > > File "", line 1, in > > NameError: name 'nonsense' is not defined > [...] > > In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) > > FWIW, I cannot reproduce this with Emacs 24.3 and Python 3.4.0 on GNU/Linux. Probably because of buffering differences: pipes are fully buffered on Windows, even those used for stderr. If that is indeed the case, I don't think this problem can be fixed in Emacs. To the OP: do you have the same problem if you redirect Python's output streams in the shell, using "2>&1 |" ? The other side of the pipe could be cat.exe, for example.