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#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via samba Date: Thu, 24 Jan 2013 11:13:52 +0100 Message-ID: <8738xq3n33.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359022517 20248 80.91.229.3 (24 Jan 2013 10:15:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2013 10:15:17 +0000 (UTC) Cc: 13540@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 11:15:35 2013 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 1TyJqD-00020I-1f for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 11:15:29 +0100 Original-Received: from localhost ([::1]:60388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyJpv-00050v-Jy for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Jan 2013 05:15:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyJpr-0004wt-DG for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 05:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyJpl-00064o-2n for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 05:15:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyJpk-00064i-Vf for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 05:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TyJpm-0006MV-DA for bug-gnu-emacs@gnu.org; Thu, 24 Jan 2013 05:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jan 2013 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13540 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13540-submit@debbugs.gnu.org id=B13540.135902245124381 (code B ref 13540); Thu, 24 Jan 2013 10:15:02 +0000 Original-Received: (at 13540) by debbugs.gnu.org; 24 Jan 2013 10:14:11 +0000 Original-Received: from localhost ([127.0.0.1]:47348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyJow-0006LB-Ju for submit@debbugs.gnu.org; Thu, 24 Jan 2013 05:14:11 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:49191) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyJot-0006L0-AA for 13540@debbugs.gnu.org; Thu, 24 Jan 2013 05:14:08 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M950d-1UAAi10KBp-00CSx5 for <13540@debbugs.gnu.org>; Thu, 24 Jan 2013 11:14:04 +0100 Original-Received: (qmail invoked by alias); 24 Jan 2013 10:14:03 -0000 Original-Received: from p57BB98C6.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.198] by mail.gmx.net (mp001) with SMTP; 24 Jan 2013 11:14:03 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/ppBIhhmTpyEHzc5db88Rb4KyRIME2vXdADS790e Kr0WLjP1dfsYuP In-Reply-To: (Dani Moncayo's message of "Thu, 24 Jan 2013 09:55:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:70234 Archived-At: Dani Moncayo writes: > Hello, Hi Dani, > At work, I've just observed a regression in the trunk [1] wrt the > emacs-24 branch [2]. > > If I visit some file, say "t:\myfile" (where t: is a network unit, > mounted via samba, that points to an hp-ux server), and I enable > auto-revert-mode, the buffer is not reverted when some other program > changes the contents of the file. > > The problem doesn't show up when the file is stored in a local unit > (c:\) but fails in the above case. There are recent changes in autorevert.el. If possible, file notifications will be used, in order to be triggered by the file system if a file is modified. For Windows systems, the new function `w32notify-add-watch' is used. Likely, it is not possible to enable file notifications for mounted file systems under Windows. In that case, `w32notify-add-watch' shall return nil, and the code in auto-revert.el shall fall back to the previous implementation. Could you, please, check what (w32notify-add-watch "t:\myfile" '(size last-write-time) 'ignore) returns? Best regards, Michael.