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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vitalie Spinu <spinuvit@HIDDEN>; dated Sat, 16 Apr 2016 11:23:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Apr 2016 11:22:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 16 07:22:39 2016
Received: from localhost ([127.0.0.1]:37141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1arOJD-0007Q2-E1
	for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 07:22:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38193)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJC-0007Pq-EF
 for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 07:22:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJ6-0007te-HH
 for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 07:22:33 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35833)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJ6-0007ta-ED
 for submit <at> debbugs.gnu.org; Sat, 16 Apr 2016 07:22:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57391)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJ5-0003P9-Cm
 for bug-gnu-emacs@HIDDEN; Sat, 16 Apr 2016 07:22:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJ1-0007so-7o
 for bug-gnu-emacs@HIDDEN; Sat, 16 Apr 2016 07:22:31 -0400
Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:37756)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1arOJ1-0007si-0X
 for bug-gnu-emacs@HIDDEN; Sat, 16 Apr 2016 07:22:27 -0400
Received: by mail-wm0-x233.google.com with SMTP id n3so64070803wmn.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 16 Apr 2016 04:22:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=oYwLYY1Ei7a21iIndzyInsd17JpQBh5pAZF8sxlPCWg=;
 b=AU43r3EPwzhEa3wrDJxn1YhQ/Hfzr6x/utTEONLYo/mWl+MF0eSeS0ZaUmLtkVWtEu
 LQLaTTxOhZOwQ5U9cTkYMbftih/YsQnggiJOfu5dvBKAnTWeDbIGXKeO/jvvLOnBFAfX
 ruSmtcsXUM7/eMj2JLur70vltqbpW+sjcUMcbZRlh/mUs5bK6nOYMhIAVs9Xe9JjrFWL
 DZX2ZldEBZ5+j36CFGdqZFRr624MdN6clDV3SGtSTKQpJZ40NIROeh3yxvUCk4SNA18M
 fqLLg/qaxCWqtEM9iK9YpFWT9Nw6F7Rbc47qNE2OtjMD9Et/y6FnDA9ukfW1DSKbTt2E
 9/7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=oYwLYY1Ei7a21iIndzyInsd17JpQBh5pAZF8sxlPCWg=;
 b=Kj8kApLmcmB/AZLa1Orkfn0eimHpNxroPMNcTAJF6Q7ovzgrWMlmY9dbe3bqObjV9d
 y7EDVvn6Pq/WG7+CfuSi4akeOs5ngkR8o2XneH2y4Nf+3wYEUnm8ixPRl8VZlsYDJkj2
 xEz6Xo4xKM+XIIvngem8ZC8j/Mspie1FT8LibRk5PZZAw53eh79YcCPzhr+yZReotKhY
 5AaTkfQB9TAvi4fCNcQ8uUjm6paZe8Iu8t0oncojodErtlOjYZwcZ3MhaJG6XIz/9Abk
 Ge4o1WVUm1FKiGKvSiWzMqmxbiYeT9s7EmUMW2x2bxJdxEr7dcJL8d/nWf3sWAriC0cF
 zJDg==
X-Gm-Message-State: AOPr4FWxY5ytu5dTiQSydSPeMuhAvYiaSiBXptzyGR90u3UGO8F4cR+nqOEqTTzYgse3Eg==
X-Received: by 10.194.77.42 with SMTP id p10mr26150350wjw.111.1460805745790;
 Sat, 16 Apr 2016 04:22:25 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id vu4sm15211388wjc.27.2016.04.16.04.22.23
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 16 Apr 2016 04:22:24 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.92; python interrupts subjop on keyborard quit
Date: Sat, 16 Apr 2016 13:22:23 +0200
Message-ID: <878u0dpzm8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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":
=20=20
=E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=
=94=80 #2951 =E2=94=80 /home/vspinu/bin/emacs/lisp/progmodes/python.el =E2=
=94=80=E2=94=80
=E2=94=82      (with-current-buffer (process-buffer process)
=E2=94=82        (comint-interrupt-subjob)))))
=E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=
=94=80 #2952 =E2=94=80

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




Acknowledgement sent to Vitalie Spinu <spinuvit@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23300; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 16 Apr 2016 11:30:02 UTC

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