From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Newsgroups: gmane.emacs.bugs Subject: bug#20441: 24.5; Auto revert mode does not work Date: Wed, 29 Apr 2015 19:47:58 +0000 Message-ID: References: <87wq0u4tye.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136b3b68e2bcb0514e241a0 X-Trace: ger.gmane.org 1430336963 23319 80.91.229.3 (29 Apr 2015 19:49:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 19:49:23 +0000 (UTC) Cc: 20441@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 21:49:11 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 1YnXyo-0003Na-U0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 21:49:11 +0200 Original-Received: from localhost ([::1]:40843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnXyo-0005VV-1m for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 15:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnXyl-0005Uz-1U for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 15:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnXyg-0007WQ-W6 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 15:49:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnXyg-0007WB-SU for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 15:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YnXyg-0000Hb-Eg for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2015 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20441-submit@debbugs.gnu.org id=B20441.14303368871017 (code B ref 20441); Wed, 29 Apr 2015 19:49:02 +0000 Original-Received: (at 20441) by debbugs.gnu.org; 29 Apr 2015 19:48:07 +0000 Original-Received: from localhost ([127.0.0.1]:56723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnXxm-0000GG-DS for submit@debbugs.gnu.org; Wed, 29 Apr 2015 15:48:07 -0400 Original-Received: from mail-yh0-f44.google.com ([209.85.213.44]:35610) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnXxk-0000Fn-48 for 20441@debbugs.gnu.org; Wed, 29 Apr 2015 15:48:04 -0400 Original-Received: by yhda23 with SMTP id a23so8130037yhd.2 for <20441@debbugs.gnu.org>; Wed, 29 Apr 2015 12:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=Ba2Got4jqfLwVNSplML8A4rnCciKbUzf2Hb9Bt80eLc=; b=AD4VhoOwAIRdtt1xr9jbg3RpEb7vHRmrtMZ4oi4jBmJWaBS08s2aFwLsllMtQbEb0z te2yckgd2tJwtWiBAW0iMnFkEANliHCK83iqEpL46bd8kB70h2X29Wf5oSISVujoiA32 NZnnUPU/n4Rmo2BRdgm9S/Ey1ULqRh+YdsfJsIFATU1lYrKE61TwZF3f4guO1uxnh68j WYAOOY9Bkoy27B5hG/cJz8hSA3CZiF0z88Vn865KTkSk0Wu5p3ZvtMd8khnr/PR4xox7 UVP9VU5X4sGousbyejvB8cLn4a+0laT5FrTgaypyJqPcEtqN2uJpCrYIuIYBIShn5Gmo QRKA== X-Received: by 10.236.10.103 with SMTP id 67mr648273yhu.148.1430336878551; Wed, 29 Apr 2015 12:47:58 -0700 (PDT) In-Reply-To: <87wq0u4tye.fsf@gmx.de> 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:102258 Archived-At: --001a1136b3b68e2bcb0514e241a0 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the pointer Michael. I am puzzled. Of course filenotify does not work for me (it used to work; I wrote this elisp snippet that used this feature: http://emacs.stackexchange.com/a/2566/115). The value of `file-notify--library` is `'gfilenotify` but the feature doesn't work for me. Any pointers? The test code evalling did not trigger the `my-notify-callback` function and so no "Event .." messages in my *Messages* buffer. On Wed, Apr 29, 2015 at 3:26 PM Michael Albinus wrote: > Hi, > > first of all, it might be interesting to know whether file notifications > do work at all on your system. What is the value of `file-notify--library'? > I suppose it is 'gfilenotify. > > Could you, please, perform the following forms then: > > (require 'filenotify) > (defun my-notify-callback (event) > (message "Event %S" event)) > (file-notify-add-watch > "/tmp" '(change attribute-change) 'my-notify-callback) > (write-region "foo" nil "/tmp/foo") > (write-region "bla" nil "/tmp/foo") > (set-file-modes "/tmp/foo" (default-file-modes)) > > Tell, whether you see related messages in the *Messages* buffer. > > Best regards, Michael. > --001a1136b3b68e2bcb0514e241a0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for the pointer Michael.

I am puzzled. Of co= urse filenotify does not work for me (it used to work; I wrote this elisp s= nippet that used this feature:=A0http://emacs.stackexchange.com/a/2566/115).

<= div>The value of `file-notify--library` is `'gfilenotify` but the featu= re doesn't work for me. Any pointers?

The test= code evalling did not trigger the `my-notify-callback` function and so no = "Event .." messages in my *Messages* buffer.

On Wed, Apr 29, 2015 at 3:26 PM Michael Albinus <<= a href=3D"mailto:michael.albinus@gmx.de">michael.albinus@gmx.de> wro= te:
Hi,

first of all, it might be interesting to know whether file notifications do work at all on your system. What is the value of `file-notify--library&#= 39;?
I suppose it is 'gfilenotify.

Could you, please, perform the following forms then:

(require 'filenotify)
(defun my-notify-callback (event)
=A0 (message "Event %S" event))
(file-notify-add-watch
=A0 "/tmp" '(change attribute-change) 'my-notify-callback= )
(write-region "foo" nil "/tmp/foo")
(write-region "bla" nil "/tmp/foo")
(set-file-modes "/tmp/foo" (default-file-modes))

Tell, whether you see related messages in the *Messages* buffer.

Best regards, Michael.
--001a1136b3b68e2bcb0514e241a0--