GNU bug report logs - #17304
Python mode delays evaluation

Previous Next

Package: emacs;

Reported by: Márton Marczell <dalokmarcinak <at> gmail.com>

Date: Mon, 21 Apr 2014 00:28:01 UTC

Severity: normal

Tags: moreinfo

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Márton Marczell <dalokmarcinak <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 17304 <at> debbugs.gnu.org
Subject: bug#17304: Python mode delays evaluation
Date: Sat, 3 May 2014 19:11:27 +0200
[Message part 1 (text/plain, inline)]
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 <eliz <at> gnu.org> wrote:

> > From: Glenn Morris <rgm <at> gnu.org>
> > Date: Fri, 02 May 2014 21:16:35 -0400
> > Cc: 17304 <at> 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 "<stdin>", line 1, in <module>
> > >     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.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.