From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#20927: 24.5; Cygwin Emacs completely blocks for 5+ seconds Date: Tue, 30 Jun 2015 10:30:02 +0200 Organization: Sebastien Vauban Message-ID: References: <83y4j24kqg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435653083 19549 80.91.229.3 (30 Jun 2015 08:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 08:31:23 +0000 (UTC) Cc: 20927-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Jun 30 10:31:16 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 1Z9qwi-0003Op-UK for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 10:31:13 +0200 Original-Received: from localhost ([::1]:45678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9qwi-0007pj-6t for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 04:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9qwf-0007pc-3X for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 30 Jun 2015 04:31:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9qwZ-0006zB-9j for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 30 Jun 2015 04:31:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9qwZ-0006z7-6a for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 30 Jun 2015 04:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9qwY-0003aj-PN for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 30 Jun 2015 04:31:02 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Tue, 30 Jun 2015 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 20927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20927-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B20927.143565302113740 (code B ref 20927); Tue, 30 Jun 2015 08:31:02 +0000 Original-Received: (at 20927) by debbugs.gnu.org; 30 Jun 2015 08:30:21 +0000 Original-Received: from localhost ([127.0.0.1]:33703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9qvr-0003Z6-EX for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 30 Jun 2015 04:30:20 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:6422 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9qvn-0003Yf-Ou for 20927-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 30 Jun 2015 04:30:16 -0400 Original-Received: from mundaneum (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 31F25500527; Tue, 30 Jun 2015 10:30:10 +0200 (CEST) X-Url: Under construction... X-Archive: encrypt In-Reply-To: <83y4j24kqg.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Mon, 29 Jun 2015 18:06:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.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-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:104527 Archived-At: Eli Zaretskii writes: >> From: Sebastien Vauban >> Date: Mon, 29 Jun 2015 15:21:27 +0200 >> >> 1. Starting Cygwin Emacs, >> 2. Opening whichever local file (`org-mode/lisp/org.el', in my case), >> and >> 3. Keeping constantly our index on the Down arrow key to make the buffer >> scroll indefinitely, >> >> Emacs blocks (after 30 seconds scroll or so) for 5 entire seconds, and >> then revives... >> >> 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)... > and they seem to suck... > > What happens if you set auto-revert-use-notify to nil before turning > on global-auto-revert-mode? That simply solves the problem. Well done! > (Btw, I think global-auto-revert-mode is evil, and advise not to use > it. Especially with file notifications. Just turn on > auto-revert-mode in those buffers/mode hooks where you really need > that.) 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) or for both Windows and Cygwin Emacs? Best regards, Seb -- Sebastien Vauban