GNU bug report logs - #23300
25.0.92; python interrupts subjop on keyborard quit

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Sat, 16 Apr 2016 11:23:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.92

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23300 in the body.
You can then email your comments to 23300 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23300; Package emacs. (Sat, 16 Apr 2016 11:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vitalie Spinu <spinuvit <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 16 Apr 2016 11:23:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.92; python interrupts subjop on keyborard quit
Date: Sat, 16 Apr 2016 13:22:23 +0200
Currently python.el has a bad habit of interrupting running jobs on
keyboard quit.

Run a time consuming task:

  import time
  time.sleep(100)

Then go to python file and move your cursor around. If eldoc or company
completion is active, python.el will hang after requesting for
completion. That's because it's not smart enough to understand that the
process is busy. For me the hang even happens on C-x C-f for no clear
reason.

Type C-g and your subjob will be interrupted. User might have been
running long computations for hours by now and interfering with sub jobs
like this is plain unacceptable.

The problem is with the "hidden evaluation":
  
╭──────── #2951 ─ /home/vspinu/bin/emacs/lisp/progmodes/python.el ──
│      (with-current-buffer (process-buffer process)
│        (comint-interrupt-subjob)))))
╰──────── #2952 ─

Removing that line solves the problem but prints the incomplete output
to the subprocess. That is a much lesser evil than interrupting the
process job IMO.

  Vitalie


GNU Emacs 25.0.92.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7) of 2016-04-09




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23300; Package emacs. (Wed, 02 Dec 2020 12:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 23300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 23300 <at> debbugs.gnu.org
Subject: Re: bug#23300: 25.0.92; python interrupts subjop on keyborard quit
Date: Wed, 02 Dec 2020 13:25:38 +0100
Vitalie Spinu <spinuvit <at> gmail.com> writes:

> Currently python.el has a bad habit of interrupting running jobs on
> keyboard quit.
>
> Run a time consuming task:
>
>   import time
>   time.sleep(100)
>
> Then go to python file and move your cursor around. If eldoc or company
> completion is active, python.el will hang after requesting for
> completion. That's because it's not smart enough to understand that the
> process is busy. For me the hang even happens on C-x C-f for no clear
> reason.

(This bug report unfortunately got no response at the time.)

I tried reproducing this in Emacs 28 by

emacs -Q foo.py
C-c C-p
C-x h
C-c C-r

and then moving around, and I didn't get any interrupts, as far as I'm
able to tell.

Are you still seeing this problem in more recent versions of Emacs?  If
so, do you have a precise recipe to reproduce the bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Dec 2020 12:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23300; Package emacs. (Tue, 19 Jan 2021 07:34:02 GMT) Full text and rfc822 format available.

Message #13 received at 23300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 23300 <at> debbugs.gnu.org
Subject: Re: bug#23300: 25.0.92; python interrupts subjop on keyborard quit
Date: Tue, 19 Jan 2021 08:33:24 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Are you still seeing this problem in more recent versions of Emacs?  If
> so, do you have a precise recipe to reproduce the bug?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 23300 <at> debbugs.gnu.org and Vitalie Spinu <spinuvit <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 19 Jan 2021 07:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 16 Feb 2021 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 118 days ago.

Previous Next


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