From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#22534: File notify broken on Windows Date: Sat, 06 Feb 2016 20:24:32 +0100 Message-ID: <874mdllk0f.fsf@gmx.de> References: <83h9hrytom.fsf@gnu.org> <87lh72xln0.fsf@gmx.de> <838u30wbx5.fsf@gnu.org> <83fux7v56c.fsf@gnu.org> <871t8rm5x8.fsf@gmx.de> <83si17t02p.fsf@gnu.org> <83wpqhsrv3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454787484 16969 80.91.229.3 (6 Feb 2016 19:38:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 19:38:04 +0000 (UTC) Cc: 22534@debbugs.gnu.org, fabrice.popineau@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 20:37:53 2016 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 1aS8g1-0003kD-Hi for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 20:37:49 +0100 Original-Received: from localhost ([::1]:56368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8g1-0002Ul-3Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 14:37:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8Th-0006b1-3C for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:25:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS8Td-0004rn-T1 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8Td-0004rj-QH for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aS8Td-0001Cn-Jq for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2016 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22534-submit@debbugs.gnu.org id=B22534.14547866844606 (code B ref 22534); Sat, 06 Feb 2016 19:25:01 +0000 Original-Received: (at 22534) by debbugs.gnu.org; 6 Feb 2016 19:24:44 +0000 Original-Received: from localhost ([127.0.0.1]:36078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS8TL-0001CE-Uy for submit@debbugs.gnu.org; Sat, 06 Feb 2016 14:24:44 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:53808) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS8TK-0001C0-8W for 22534@debbugs.gnu.org; Sat, 06 Feb 2016 14:24:42 -0500 Original-Received: from detlef.gmx.de ([93.209.75.89]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LfXmv-1ZiOa346Jd-00p8Z0; Sat, 06 Feb 2016 20:24:35 +0100 In-Reply-To: <83wpqhsrv3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Feb 2016 18:53:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-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BcgJZUXZqKbvo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:112573 Archived-At: Eli Zaretskii writes: > The solution is to call read-event while renaming the files. Then I > could go back to 1000 renames without failures. > > Michael, is there a reason not to issue those additional calls to > read-event on other platforms? If necessary, those calls could be > made conditional on MS-Windows. No, it's OK also for the other backends. This might make the test even more robust. > Here's the proposed patch. Fabrice, please see if this works for you > (the full test runs for about 7 minutes, so be patient). Btw, we > could make the test run faster by lowering the 0.1 argument to the 2 > read-event calls while we create the 2000 files at the beginning of > the test, I see no need for waiting that long for a single file > creation. Well, the two Tramp backends aren't such fast. That's why I use a 0.1 sec timeout for all read-event calls. Maybe we could introduce a defconst for this, setting it to 0.02 for local backends, and to 0.1 for remote backends. Please install the patch; I'll test it then for the other 5 backends next days. Best regards, Michael.