From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?M=C3=A1rton?= Marczell Newsgroups: gmane.emacs.bugs Subject: bug#17304: Python mode delays evaluation Date: Sat, 3 May 2014 19:11:27 +0200 Message-ID: References: <1vppjvwtjg.fsf@fencepost.gnu.org> <83bnvf1iyx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3431a1c30e704f881fd16 X-Trace: ger.gmane.org 1399137145 12105 80.91.229.3 (3 May 2014 17:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 17:12:25 +0000 (UTC) Cc: 17304@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 03 19:12:18 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 1WgdU1-0003Px-6C for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 19:12:17 +0200 Original-Received: from localhost ([::1]:49622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgdU0-0001fG-Oc for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 May 2014 13:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgdTs-0001eq-Br for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 13:12:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgdTn-0000dg-H8 for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 13:12:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgdTn-0000dZ-EF for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 13:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WgdTm-0007IG-J9 for bug-gnu-emacs@gnu.org; Sat, 03 May 2014 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?M=C3=A1rton?= Marczell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 May 2014 17:12: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.139913709627997 (code B ref 17304); Sat, 03 May 2014 17:12:02 +0000 Original-Received: (at 17304) by debbugs.gnu.org; 3 May 2014 17:11:36 +0000 Original-Received: from localhost ([127.0.0.1]:49899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgdTM-0007HS-2H for submit@debbugs.gnu.org; Sat, 03 May 2014 13:11:36 -0400 Original-Received: from mail-ee0-f46.google.com ([74.125.83.46]:40887) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgdTJ-0007HA-MC for 17304@debbugs.gnu.org; Sat, 03 May 2014 13:11:34 -0400 Original-Received: by mail-ee0-f46.google.com with SMTP id t10so393375eei.19 for <17304@debbugs.gnu.org>; Sat, 03 May 2014 10:11:27 -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 :cc:content-type; bh=008Ftpt+af+QjdA2H/dA8DLD8fGu4VnJZkZ9j8yPnL0=; b=Vb65VhMMGFXCEqoUBwmtUgFuSvPBECuYwYL6nd+Vpuk80AhVPdH8AOCINI0Kshh8AE TIhBFaqx5EszjlDR7TlRAHoweiFVUQ/dqOtj8+PYTB47GMdi/+JUHr7IvlqcC3dxxX9b RxaTcYIylV+4kaCt8R+fP8gtFemJul+ZO8VSPb+u4zgUz/+MfXsBvfwtUXVdjJT6gZtv QiYPe1bnIMluJSvgv9sAf9x7rH0CHkhBbRUmUUSO9kszLOXyf2ho1IIpV1QX+Txy+snR mri2uDv3F+4tKwYhpN5oyQLk5sJ3XCgbdvbqBFZCbL7DBvEnOLQKsoekGx2LVxEwrelT bJcw== X-Received: by 10.15.49.65 with SMTP id i41mr21254619eew.87.1399137087793; Sat, 03 May 2014 10:11:27 -0700 (PDT) Original-Received: by 10.14.140.74 with HTTP; Sat, 3 May 2014 10:11:27 -0700 (PDT) In-Reply-To: <83bnvf1iyx.fsf@gnu.org> 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:88595 Archived-At: --001a11c3431a1c30e704f881fd16 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, if I run "python 2>&1 | cat.exe" in the cmd.exe prompt, I get the exact same behaviour. But I don't have the same problem with Python 2. On Sat, May 3, 2014 at 8:20 AM, Eli Zaretskii wrote: > > From: Glenn Morris > > Date: Fri, 02 May 2014 21:16:35 -0400 > > Cc: 17304@debbugs.gnu.org > > > > M=C3=A1rton 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. > --001a11c3431a1c30e704f881fd16 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, if I run "python 2>&1 | cat.exe" in = the cmd.exe prompt, I get the exact same behaviour. But I don't have th= e same problem with Python 2.


<= div class=3D"gmail_quote"> On Sat, May 3, 2014 at 8:20 AM, Eli Zaretskii <eliz@gnu.org> wrot= e:
> From: Glenn Morris <rgm@gnu.org&= gt;
> Date: Fri, 02 May 2014 21:16:35 -0400
> Cc: 17304@debbugs.gnu.org=
>
> M=C3=A1rton 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 delaye= d (I have
> > to press Enter one more time), as seen below:
> >
> > =C2=A0 =C2=A0 >>> 1
> > =C2=A0 =C2=A0 1
> > =C2=A0 =C2=A0 >>> nonsense
> > =C2=A0 =C2=A0 >>>
> > =C2=A0 =C2=A0 Traceback (most recent call last):
> > =C2=A0 =C2=A0 File "<stdin>", line 1, in <modu= le>
> > =C2=A0 =C2=A0 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 buff= ered on
Windows, even those used for stderr. =C2=A0If 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 |" ? =C2=A0The ot= her side of the
pipe could be cat.exe, for example.

--001a11c3431a1c30e704f881fd16--