From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11724: 24.1; emacs freeze (full hang, ctrl+G or kill -15 do not help) on rope lucky assist Date: Mon, 25 Jun 2012 10:51:36 -0400 Message-ID: References: <20120616093647.5db4c4af@avk-v131.local> <20120625071537.2d6804df@avk-v131.local> <20456.4450.155179.302614@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340635937 16828 80.91.229.3 (25 Jun 2012 14:52:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2012 14:52:17 +0000 (UTC) Cc: "Alex V. Koval" , 11724@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 16:52:16 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjAeG-0006jk-0Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 16:52:16 +0200 Original-Received: from localhost ([::1]:47508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjAeG-0001yt-2w for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 10:52:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjAeC-0001yf-Ri for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 10:52:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjAe7-0004Cz-QE for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 10:52:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjAe7-0004Cv-Mx for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 10:52:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SjAhu-0005p8-Im for bug-gnu-emacs@gnu.org; Mon, 25 Jun 2012 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jun 2012 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11724 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11724-submit@debbugs.gnu.org id=B11724.134063613622354 (code B ref 11724); Mon, 25 Jun 2012 14:56:02 +0000 Original-Received: (at 11724) by debbugs.gnu.org; 25 Jun 2012 14:55:36 +0000 Original-Received: from localhost ([127.0.0.1]:57403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjAhT-0005oV-Oz for submit@debbugs.gnu.org; Mon, 25 Jun 2012 10:55:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58569) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjAhR-0005oO-T4 for 11724@debbugs.gnu.org; Mon, 25 Jun 2012 10:55:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0FAG6Zu0/O+L+Q/2dsb2JhbABEr1qEN4EIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOjM4FYgwWBOho X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="192052798" Original-Received: from 206-248-191-144.dsl.teksavvy.com (HELO pastel.home) ([206.248.191.144]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jun 2012 10:51:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BFB5F4E417; Mon, 25 Jun 2012 10:51:36 -0400 (EDT) In-Reply-To: <20456.4450.155179.302614@gnu.org> (Glenn Morris's message of "Mon, 25 Jun 2012 03:21:06 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61277 Archived-At: >> Yes, I pretty well understand that point. >> But why Emacs 24 hangs completely without reacting >> to C-g and other keys? Because there are situations where Emacs temporarily inhibits C-g. These are situations where using accept-process-output without a timeout is fundamentally a bug (it currently doesn't signal an error in those cases, but it does output a warning message). >> I consider *this* to be emacs bug because it makes it impossible for >> me to debug the problem on Lisp level to properly report it to >> package maintainers as you suggest. In Emacs-24, you can set `debug-on-event' to `sigusr1' after which sending a SIGUSR1 signal to the process will put you in the Elisp debugger. > until there is some output. It doesn't mention quitting being > inhibited though. By experiment, it is not: Quit is inhibitted while running pre/post-command-hook, timers, process filters and sentinels, jit-lock, and probably a few more similar cases. The general rule is that it's inhibited when running code "behind the back of the user", so that the user won't accidentally interrupt that code if she hits C-g for some other reason (e.g. to get out of a minibuffer). Stefan