From unknown Fri Jun 20 07:20:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17304 <17304@debbugs.gnu.org> To: bug#17304 <17304@debbugs.gnu.org> Subject: Status: Python mode delays evaluation Reply-To: bug#17304 <17304@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:00 +0000 retitle 17304 Python mode delays evaluation reassign 17304 emacs submitter 17304 M=C3=A1rton Marczell severity 17304 normal tag 17304 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 20:27:46 2014 Received: (at submit) by debbugs.gnu.org; 21 Apr 2014 00:27:46 +0000 Received: from localhost ([127.0.0.1]:53612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wc25H-0007kg-Nm for submit@debbugs.gnu.org; Sun, 20 Apr 2014 20:27:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33705) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WbU0k-00011p-Ji for submit@debbugs.gnu.org; Sat, 19 Apr 2014 08:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbU0d-000703-LX for submit@debbugs.gnu.org; Sat, 19 Apr 2014 08:04:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbU0d-0006zz-IX for submit@debbugs.gnu.org; Sat, 19 Apr 2014 08:04:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbU0b-0004ig-Kt for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2014 08:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbU0Z-0006zZ-Vb for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2014 08:04:37 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:51766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbU0Z-0006zT-Jr for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2014 08:04:35 -0400 Received: by mail-ee0-f44.google.com with SMTP id e49so2323744eek.17 for ; Sat, 19 Apr 2014 05:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=TftTgjCOoYtgnwVhbd7G5sRzFgVbuyMtfA39t61bQuQ=; b=gEGqpHk1EhQWdB16nrBPPIV+UdVJSRQ2hEVq7wLOxP78ucrAl7r0Ba2zHrvyS6eMNL RN/Ut5fNOmTrtrJIM2pGGvjMEhJfpFfbbg9jZmVdQ1mLiSUNGuCbwgf/pZpQpIhTomSR xWURpFsDJmO/95Bi7Z1EH9/iuJr31mSWoJozVrRUPfTndixpOzEktYwazLUGWVxFukAo UarQ5IWAeDzObEOrgAWQvwAIKhB2xFXbZIBhMIhZAS7AeaSbuhEBVsv221pIIshETloq AJcU3420tTAWbGE0GjR1ERHNnvcdJ7ifN8RhfUYw6mQcXdw12ow6J4HO7vJCTNDVPyDu TwUw== MIME-Version: 1.0 X-Received: by 10.15.82.132 with SMTP id a4mr30254126eez.47.1397909074111; Sat, 19 Apr 2014 05:04:34 -0700 (PDT) Received: by 10.14.140.74 with HTTP; Sat, 19 Apr 2014 05:04:34 -0700 (PDT) Date: Sat, 19 Apr 2014 14:04:34 +0200 Message-ID: Subject: Python mode delays evaluation From: =?UTF-8?Q?M=C3=A1rton_Marczell?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e016355eeca714204f76411f5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 20 Apr 2014 20:27:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e016355eeca714204f76411f5 Content-Type: text/plain; charset=UTF-8 From: dalokmarcinak@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.3; Python mode delays evaluation --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': --- 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 --- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/Program Files/lispbox-0.7/emacs/etc/DEBUG. In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: HUN locale-coding-system: cp1250 default enable-multibyte-characters: t Major mode: Inferior Python Minor modes in effect: compilation-shell-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o C-g M-x r u n . - - p y M-x r e p o r t P y t h o n SPC m o d e SPC d e l a y s SPC e v a l u t a i o n a t i o n C-y - - - - - - C-c C-c y e s M-x r e p o r t Recent messages: Checking 87 files in c:/Program Files/lispbox-0.7/emacs/lisp/calc... Checking 77 files in c:/Program Files/lispbox-0.7/emacs/lisp/obsolete... Checking 2 files in c:/Program Files/lispbox-0.7/emacs/leim... Checking for load-path shadows...done Mark set [2 times] Sending... Mark set [2 times] Sending via mail... Sending...done Making completion list... Load-path shadows: None found. Features: (mailalias mailclient browse-url shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils help-mode compile python rx edmacro kmacro 2048-game-autoloads auctex-autoloads tex-site info gnuplot-autoloads gnuplot-mode-autoloads js2-mode-autoloads finder-inf latex-preview-pane-autoloads lua-mode-autoloads markdown-mode+-autoloads markdown-mode-autoloads php-mode-autoloads package warnings sql easymenu thingatpt tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice help-fns cl-lib advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) --089e016355eeca714204f76411f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

From: dalok= marcinak@gmail.com
To: bug-= gnu-emacs@gnu.org
Subject: 24.3; Python mode delays evaluation
--= text follows this line--
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the G= NU bug tracker at debbugs.gnu.org.= =C2=A0 Please check that
the From: line contains a valid email address.= =C2=A0 After a delay of up
to one day, you should receive an acknowledgment at that address.

Pl= ease write in English if possible, as the Emacs maintainers
usually do n= ot have translators for other languages.

Please describe exactly wha= t actions triggered the bug, and
the precise symptoms of the bug.=C2=A0 If you can, give a recipe
startin= g from `emacs -Q':


---
When I run a Python 3.3.4 prompt i= nside 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 se= en below:

=C2=A0=C2=A0=C2=A0 >>> 1
=C2=A0=C2=A0=C2=A0 1
=C2=A0=C2= =A0=C2=A0 >>> nonsense
=C2=A0=C2=A0=C2=A0 >>>
=C2= =A0=C2=A0=C2=A0 Traceback (most recent call last):
=C2=A0=C2=A0=C2=A0 Fi= le "<stdin>", line 1, in <module>
=C2=A0=C2=A0=C2= =A0 NameError: name 'nonsense' is not defined
---

If Emacs crashed, and you have the Emacs process in the gdb debu= gger,
please include the output from the following gdb commands:
=C2= =A0=C2=A0=C2=A0 `bt full' and `xbacktrace'.
For information abou= t debugging Emacs, please read the file
c:/Program Files/lispbox-0.7/emacs/etc/DEBUG.


In GNU Emacs 24.3.= 1 (i386-mingw-nt6.1.7601)
=C2=A0of 2013-03-17 on MARVIN
Windowing sys= tem distributor `Microsoft Corp.', version 6.1.7601
Configured using= :
=C2=A0`configure --with-gcc (4.7) --cflags
=C2=A0-ID:/devel/emacs/libs/l= ibXpm-3.5.8/include
=C2=A0-ID:/devel/emacs/libs/libXpm-3.5.8/src
=C2= =A0-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
=C2=A0-ID:/devel/ema= cs/libs/zlib-dev_1.2.5-2/include
=C2=A0-ID:/devel/emacs/libs/giflib-4.1.4-1/include
=C2=A0-ID:/devel/emac= s/libs/jpeg-6b-4/include
=C2=A0-ID:/devel/emacs/libs/tiff-3.8.2-1/includ= e
=C2=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include
=C2=A0-ID:/devel/e= macs/libs/libiconv-1.13.1-1-dev/include
=C2=A0-ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

Impor= tant settings:
=C2=A0 value of $LANG: HUN
=C2=A0 locale-coding-system= : cp1250
=C2=A0 default enable-multibyte-characters: t

Major mode= : Inferior Python

Minor modes in effect:
=C2=A0 compilation-shell-minor-mode: t
=C2= =A0 shell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-= mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 fil= e-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-comp= osition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compressio= n-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
Recent input:
M-x r e p o C-g M-x r u n . - <backspace> <b= ackspace>
- p y <return> M-x r e p o <tab> r t <tab> <return>=
P y t h o n SPC m o d e SPC d e l a y s SPC e v a l
u t a i o n &l= t;backspace> <backspace> <backspace> <backspace>
<backspace> a t i o n <return> C-y <up> <up> <up= > <up>
<up> <up> <up> <up> <up> = <up> <up> <down> <return>
<up> - - - <= down> <down> <down> <down> <down> <down> <= br> <down> <down> <down> <down> <down> - - - C-c = C-c y
e s <return> <help-echo> <down-mouse-1> <mou= se-1> M-x
r e p o <tab> r t <tab> <return>

Recent messages:
Checking 87 files in c:/Program Files/lispbox-0.7/e= macs/lisp/calc...
Checking 77 files in c:/Program Files/lispbox-0.7/emac= s/lisp/obsolete...
Checking 2 files in c:/Program Files/lispbox-0.7/emac= s/leim...
Checking for load-path shadows...done
Mark set [2 times]
Sending...Mark set [2 times]
Sending via mail...
Sending...done
Making com= pletion list...

Load-path shadows:
None found.

Features: (mailalias mailclient browse-url shadow sort mail-extr emacsbug message
= rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mail= abbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mail-uti= ls help-mode compile python rx edmacro kmacro
2048-game-autoloads auctex-autoloads tex-site info gnuplot-autoloads
gnu= plot-mode-autoloads js2-mode-autoloads finder-inf
latex-preview-pane-aut= oloads lua-mode-autoloads markdown-mode+-autoloads
markdown-mode-autoloa= ds php-mode-autoloads package warnings sql easymenu
thingatpt tramp tramp-compat auth-source eieio byte-opt bytecomp
byte-co= mpile cconv gnus-util mm-util mail-prsvr password-cache
tramp-loaddefs s= hell pcomplete comint ansi-color ring format-spec advice
help-fns cl-lib= advice-preload time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-winw32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list
ne= wcomment lisp-mode register page menu-bar rfn-eshadow timer select
scrol= l-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korea= n japanese hebrew greek romanian slovak czech european ethiopic
indian c= yrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev min= ibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custo= m widget hashtable-print-readable backquote make-network-process
w32 mul= ti-tty emacs)

--089e016355eeca714204f76411f5-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 02 21:16:40 2014 Received: (at 17304) by debbugs.gnu.org; 3 May 2014 01:16:40 +0000 Received: from localhost ([127.0.0.1]:48879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgOZE-0002Wv-3U for submit@debbugs.gnu.org; Fri, 02 May 2014 21:16:40 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:60208 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgOZA-0002Wl-O4 for 17304@debbugs.gnu.org; Fri, 02 May 2014 21:16:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WgOZ9-0007od-Pd; Fri, 02 May 2014 21:16:35 -0400 From: Glenn Morris To: =?utf-8?Q?M=C3=A1rton?= Marczell Subject: Re: bug#17304: Python mode delays evaluation References: X-Spook: sniper MDA Majic War on Terrorism CIDA Craig Livingstone X-Ran: !|bh"C@,$1cJtPY@^U'&Scj%-ezS;k=OI=DXkj-E%+;ocKhz~c[;Y}s!Nwi@ENeAb*BfIb X-Hue: magenta X-Attribution: GM Date: Fri, 02 May 2014 21:16:35 -0400 In-Reply-To: (=?utf-8?Q?=22M=C3=A1rton?= Marczell"'s message of "Sat, 19 Apr 2014 14:04:34 +0200") Message-ID: <1vppjvwtjg.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17304 Cc: 17304@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat May 03 02:20:32 2014 Received: (at 17304) by debbugs.gnu.org; 3 May 2014 06:20:32 +0000 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 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 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) 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) Date: Sat, 03 May 2014 09:20:38 +0300 From: Eli Zaretskii Subject: Re: bug#17304: Python mode delays evaluation In-reply-to: <1vppjvwtjg.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il To: Glenn Morris Message-id: <83bnvf1iyx.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1vppjvwtjg.fsf@fencepost.gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17304 Cc: dalokmarcinak@gmail.com, 17304@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat May 03 13:11:36 2014 Received: (at 17304) by debbugs.gnu.org; 3 May 2014 17:11:36 +0000 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 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 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== MIME-Version: 1.0 X-Received: by 10.15.49.65 with SMTP id i41mr21254619eew.87.1399137087793; Sat, 03 May 2014 10:11:27 -0700 (PDT) Received: by 10.14.140.74 with HTTP; Sat, 3 May 2014 10:11:27 -0700 (PDT) In-Reply-To: <83bnvf1iyx.fsf@gnu.org> References: <1vppjvwtjg.fsf@fencepost.gnu.org> <83bnvf1iyx.fsf@gnu.org> Date: Sat, 3 May 2014 19:11:27 +0200 Message-ID: Subject: Re: bug#17304: Python mode delays evaluation From: =?UTF-8?Q?M=C3=A1rton_Marczell?= To: Eli Zaretskii Content-Type: multipart/alternative; boundary=001a11c3431a1c30e704f881fd16 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17304 Cc: Glenn Morris , 17304@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --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-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 03 13:21:49 2014 Received: (at 17304) by debbugs.gnu.org; 3 May 2014 17:21:49 +0000 Received: from localhost ([127.0.0.1]:49903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgddF-0007Xc-FM for submit@debbugs.gnu.org; Sat, 03 May 2014 13:21:49 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:48172) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WgddD-0007XN-Qk for 17304@debbugs.gnu.org; Sat, 03 May 2014 13:21:48 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0N5000N00CXKSC00@mtaout27.012.net.il> for 17304@debbugs.gnu.org; Sat, 03 May 2014 20:18:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5000PD2DEF5800@mtaout27.012.net.il>; Sat, 03 May 2014 20:18:15 +0300 (IDT) Date: Sat, 03 May 2014 20:21:41 +0300 From: Eli Zaretskii Subject: Re: bug#17304: Python mode delays evaluation In-reply-to: X-012-Sender: halo1@inter.net.il To: =?utf-8?Q?M=C3=A1rton?= Marczell Message-id: <83vbtmzska.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1vppjvwtjg.fsf@fencepost.gnu.org> <83bnvf1iyx.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17304 Cc: rgm@gnu.org, 17304@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sat, 3 May 2014 19:11:27 +0200 > From: Márton Marczell > Cc: Glenn Morris , 17304@debbugs.gnu.org > > 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. Then I guess you should ask about this on the Python mailing list. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 19 09:36:37 2014 Received: (at 17304) by debbugs.gnu.org; 19 Jul 2014 13:36:37 +0000 Received: from localhost ([127.0.0.1]:59135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8UoW-00007Z-O4 for submit@debbugs.gnu.org; Sat, 19 Jul 2014 09:36:37 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59008 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8UoU-00007Q-3f for 17304@debbugs.gnu.org; Sat, 19 Jul 2014 09:36:34 -0400 Received: from 222-99-245-190.fibertel.com.ar ([190.245.99.222]:37266 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1X8UoT-0006ar-0q for 17304@debbugs.gnu.org; Sat, 19 Jul 2014 09:36:33 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 17304@debbugs.gnu.org Subject: Re: Python mode delays evaluation Date: Sat, 19 Jul 2014 10:36:30 -0300 Message-ID: <877g39mpwh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 17304 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: CAChNUDHsvd8raECNdDjtykRr_Wf1YcEgVV3vL=ek2RsMadPgKw@mail.gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Does running python with the -u switch help? (setq python-shell-interpreter-args "-u -i") Regards, Fabi=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 20 16:28:36 2014 Received: (at 17304-done) by debbugs.gnu.org; 20 Jul 2014 20:28:36 +0000 Received: from localhost ([127.0.0.1]:60657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8xil-0006uk-Qq for submit@debbugs.gnu.org; Sun, 20 Jul 2014 16:28:36 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:55334 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8xij-0006uZ-8D for 17304-done@debbugs.gnu.org; Sun, 20 Jul 2014 16:28:34 -0400 Received: from 222-99-245-190.fibertel.com.ar ([190.245.99.222]:53910 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1X8xii-0003dw-Cp for 17304-done@debbugs.gnu.org; Sun, 20 Jul 2014 16:28:32 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 17304-done@debbugs.gnu.org Subject: Re: Python mode delays evaluation Date: Sun, 20 Jul 2014 17:28:29 -0300 Message-ID: <87tx6bzseq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 17304-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I was able to replicate this on a Windows 7 machine running Python 3.3.4. Adding the "-u" switch to `python-shell-interpreter-args' seems to help as no occurrences of the issue happened ever since. Added a commentary about this at revno 117392 in the emacs-24 branch just in case this issue gets to mess with more people. Cheers, Fabi=C3=A1n From unknown Fri Jun 20 07:20:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 18 Aug 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator