From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: gnus makes emacs lose response Date: Sat, 23 Sep 2006 14:18:34 -0400 Message-ID: <8764fe4fb9.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159035408 2111 80.91.229.2 (23 Sep 2006 18:16:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2006 18:16:48 +0000 (UTC) Cc: ding@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 23 20:16:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRC3Q-0003Fi-5x for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2006 20:16:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRC3P-0001ai-4R for ged-emacs-devel@m.gmane.org; Sat, 23 Sep 2006 14:16:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRC3B-0001Zf-S6 for emacs-devel@gnu.org; Sat, 23 Sep 2006 14:16:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRC3A-0001XI-EA for emacs-devel@gnu.org; Sat, 23 Sep 2006 14:16:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRC3A-0001XC-5r for emacs-devel@gnu.org; Sat, 23 Sep 2006 14:16:28 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRC79-0004X6-Rs for emacs-devel@gnu.org; Sat, 23 Sep 2006 14:20:36 -0400 Original-Received: by cyd (Postfix, from userid 1000) id C18054E3DD; Sat, 23 Sep 2006 14:18:34 -0400 (EDT) Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60146 gmane.emacs.gnus.general:63766 Archived-At: After some further communication with Leon, I think I know the problem: accept-process-output is called by the timer function `gnus-demon' (which is a valid but IIUC not commonly-used component of Gnus). However, as documented in the Lisp Reference manual: Emacs binds `inhibit-quit' to `t' before calling the timer function, because quitting out of many timer functions can leave things in an inconsistent state. This is normally unproblematical because most timer functions don't do a lot of work. Indeed, for a timer to call a function that takes substantial time to run is likely to be annoying. The result in this case is that this accept-process-output can't be interrupted, and Emacs can hang if the process doesn't reply (e.g., if the connection dies). I'm not sure what the best way to handle this is. Anyone?