unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23300: 25.0.92; python interrupts subjop on keyborard quit
@ 2016-04-16 11:22 Vitalie Spinu
  2020-12-02 12:25 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Vitalie Spinu @ 2016-04-16 11:22 UTC (permalink / raw)
  To: 23300


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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#23300: 25.0.92; python interrupts subjop on keyborard quit
  2016-04-16 11:22 bug#23300: 25.0.92; python interrupts subjop on keyborard quit Vitalie Spinu
@ 2020-12-02 12:25 ` Lars Ingebrigtsen
  2021-01-19  7:33   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-02 12:25 UTC (permalink / raw)
  To: Vitalie Spinu; +Cc: 23300

Vitalie Spinu <spinuvit@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#23300: 25.0.92; python interrupts subjop on keyborard quit
  2020-12-02 12:25 ` Lars Ingebrigtsen
@ 2021-01-19  7:33   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-19  7:33 UTC (permalink / raw)
  To: Vitalie Spinu; +Cc: 23300

Lars Ingebrigtsen <larsi@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-19  7:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-16 11:22 bug#23300: 25.0.92; python interrupts subjop on keyborard quit Vitalie Spinu
2020-12-02 12:25 ` Lars Ingebrigtsen
2021-01-19  7:33   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).