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

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).