From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Blocking call to accept-process-output with quit inhibited!! Date: Fri, 21 Jun 2013 10:54:01 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371826450 1139 80.91.229.3 (21 Jun 2013 14:54:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 14:54:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 16:54:10 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Uq2j2-0002NO-Eg for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 16:54:08 +0200 Original-Received: from localhost ([::1]:35248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq2j2-0006W4-55 for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 10:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq2ix-0006Vj-Qc for emacs-devel@gnu.org; Fri, 21 Jun 2013 10:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq2iw-0003Bh-M1 for emacs-devel@gnu.org; Fri, 21 Jun 2013 10:54:03 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:52725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq2iw-0003BZ-IG for emacs-devel@gnu.org; Fri, 21 Jun 2013 10:54:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFpZVy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="16875429" Original-Received: from 69-165-149-114.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Jun 2013 10:53:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 61EA562CFF; Fri, 21 Jun 2013 10:54:01 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Fri, 21 Jun 2013 13:47:07 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160833 Archived-At: > * comint.el (comint-redirect-results-list-from-process): Fix random > delay. > I am seeing "Blocking call to accept-process-output with quit > inhibited!!" from time to time. > How does this mean? Just what it says: a call to accept-process-output was done at a time when quit is inhibited, and the call can block, thus rendering Emacs completely unresponsive. > I can't see where comint has inhibited quit. quit is inhibited when running timers, process-filters and other such asynchronous events. So comint doesn't need to inhibit-quit itself for such a warning to show up, if its code is executed from a process-filter. Try to figure out how/when a process-filter (or timer...) can end up running the while + accept-process-output loop, and then think about whether that really should happen, and if so make sure the process-filter (or timer...) uses with-local-quit before running that loop. Stefan