[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23300: 25.0.92; python interrupts subjop on keyborard quit

From: Vitalie Spinu
Subject: bug#23300: 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

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

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.


GNU Emacs (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7) of 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]