unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vitalie Spinu <spinuvit@gmail.com>
To: 23300@debbugs.gnu.org
Subject: bug#23300: 25.0.92; python interrupts subjop on keyborard quit
Date: Sat, 16 Apr 2016 13:22:23 +0200	[thread overview]
Message-ID: <878u0dpzm8.fsf@gmail.com> (raw)


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





             reply	other threads:[~2016-04-16 11:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-16 11:22 Vitalie Spinu [this message]
2020-12-02 12:25 ` bug#23300: 25.0.92; python interrupts subjop on keyborard quit Lars Ingebrigtsen
2021-01-19  7:33   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878u0dpzm8.fsf@gmail.com \
    --to=spinuvit@gmail.com \
    --cc=23300@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).