From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds Date: Tue, 30 Jun 2015 18:17:17 +0300 Message-ID: <833819445e.fsf@gnu.org> References: <83y4j24kqg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435677510 27848 80.91.229.3 (30 Jun 2015 15:18:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 15:18:30 +0000 (UTC) Cc: 20927@debbugs.gnu.org To: Sebastien Vauban Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 17:18:19 2015 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 1Z9xIe-0001sz-NV for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 17:18:16 +0200 Original-Received: from localhost ([::1]:47484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9xId-0006Gr-Tc for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 11:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9xIa-0006Gm-Di for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 11:18:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9xIR-0001tn-2S for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 11:18:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9xIQ-0001tj-WD for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 11:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9xIQ-00067H-J9 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 11:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2015 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20927-submit@debbugs.gnu.org id=B20927.143567744223455 (code B ref 20927); Tue, 30 Jun 2015 15:18:02 +0000 Original-Received: (at 20927) by debbugs.gnu.org; 30 Jun 2015 15:17:22 +0000 Original-Received: from localhost ([127.0.0.1]:34610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9xHm-00066E-3s for submit@debbugs.gnu.org; Tue, 30 Jun 2015 11:17:22 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:49716) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9xHj-00065z-Lp for 20927@debbugs.gnu.org; Tue, 30 Jun 2015 11:17:21 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NQR00100JRXWC00@mtaout28.012.net.il> for 20927@debbugs.gnu.org; Tue, 30 Jun 2015 18:17:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQR00HYLJSB9C90@mtaout28.012.net.il>; Tue, 30 Jun 2015 18:17:00 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:104534 Archived-At: > From: Sebastien Vauban > Cc: 20927@debbugs.gnu.org > Date: Tue, 30 Jun 2015 10:30:02 +0200 > > >> I've tracked down this problem in Cygwin Emacs, and it's due to this > >> line: > >> > >> --8<---------------cut here---------------start------------->8--- > >> (global-auto-revert-mode 1) ; Auto refresh buffers. > >> --8<---------------cut here---------------end--------------->8--- > >> > >> When it's commented, Cygwin Emacs behaves normally. > > > > Probably because you use glib's notifications, > > If you say so (I'm not even aware of what that is)... It's a library which implements file notifications. > Would you advice me to put: > > --8<---------------cut here---------------start------------->8--- > ;; Don't use file notification functions. > (setq auto-revert-use-notify nil) > --8<---------------cut here---------------end--------------->8--- > > just for Cygwin Emacs (where the problem was visible) Since Ken cannot reproduce this in his Emacs, I'd suggest to try and figure out why you are hit by this problem, while he is not. For starters, does the problem happen in "emacs -Q"? If so, I suggest to compare the versions of glib you and Ken use. > or for both Windows and Cygwin Emacs? No, the native Windows build of Emacs doesn't use glib (it can be built like that, but when I tried this, file notifications simply didn't work at all). It uses a native Windows API for receiving file notifications. So this is definitely not needed in the native Windows build.