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#13540: 24.3.50; Regression in trunk: auto-revert-mode fails on files accessed via samba Date: Fri, 25 Jan 2013 09:57:17 +0200 Message-ID: <83ip6llmoy.fsf@gnu.org> References: <8738xq3n33.fsf@gmx.de> <87sj5q281x.fsf@gmx.de> <83622mmtz7.fsf@gnu.org> <83r4lala3q.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1359100686 21476 80.91.229.3 (25 Jan 2013 07:58:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2013 07:58:06 +0000 (UTC) Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 25 08:58:24 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 1TyeB5-00041k-II for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jan 2013 08:58:23 +0100 Original-Received: from localhost ([::1]:36669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeAo-00063G-5g for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Jan 2013 02:58:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeAh-00062w-7C for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 02:58:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyeAd-0001NH-JM for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 02:57:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyeAd-0001NC-GR for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 02:57:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TyeAk-0007ni-1j for bug-gnu-emacs@gnu.org; Fri, 25 Jan 2013 02:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Jan 2013 07:58: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.135910064329938 (code B ref 13540); Fri, 25 Jan 2013 07:58:02 +0000 Original-Received: (at 13540) by debbugs.gnu.org; 25 Jan 2013 07:57:23 +0000 Original-Received: from localhost ([127.0.0.1]:48483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyeA6-0007mp-HG for submit@debbugs.gnu.org; Fri, 25 Jan 2013 02:57:22 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63489) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TyeA3-0007me-RV for 13540@debbugs.gnu.org; Fri, 25 Jan 2013 02:57:21 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MH600A008J3SM00@a-mtaout22.012.net.il> for 13540@debbugs.gnu.org; Fri, 25 Jan 2013 09:57:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MH600AA18RAUQ10@a-mtaout22.012.net.il>; Fri, 25 Jan 2013 09:57:10 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:70274 Archived-At: > Date: Fri, 25 Jan 2013 08:46:59 +0100 > From: Dani Moncayo > Cc: michael.albinus@gmx.de, 13540@debbugs.gnu.org > > > Each time you evaluate the expression that calls w32notify-add-watch, > > you should see another "New Thread" announcement. > > Yes I do. > > > This is normal, > > since each watch you add starts a new thread where the watching code > > runs. > > Ok. > > > Can you use Process Explorer or "pslist -d emacs" (both tools are from > > the Sysinternals package) to see if the threads started when you > > invoke w32notify-add-watch keep running, or die/exit? > > I observe (with process explorer) that the new threads keep running. > > > The lack of any messages suggests that the threads continue to run, > > but file notifications never come in, which probably means we cannot > > detect this problem automatically, and must rely on the users who know > > which volumes can and cannot be supported. > > Ok, if Emacs cannot determine itself whether file notifications work, > I'll set `auto-revert-use-notify' to nil on that machine. > > > Also, I presume that you tried to modify files on the mounted volumes, > > while you had GDB attached to Emacs. > > Of course. I started and "emacs -Q" process under GDB, and from that > emacs session I visited the file on the mounted volume and turned on > auto-revert-mode. Then, if I modify the file with another program, > the emacs buffer isn't reverted and the GDB console doesn't show any > message. Thanks. I guess autorevert should allow users to specify whether notifications should be used on a per filesystem basis, rather than just globally for the entire session.