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 20:54:26 +0000 Message-ID: References: <87wq0u4tye.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1137971258c7e80514e32f8c X-Trace: ger.gmane.org 1430340923 27243 80.91.229.3 (29 Apr 2015 20:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 20:55: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 22:55:12 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 1YnZ0g-0006rC-Sq for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 22:55:11 +0200 Original-Received: from localhost ([::1]:41044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnZ0g-00009C-3v for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 16:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnZ0c-000072-FC for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 16:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnZ0Z-0006kF-1i for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 16:55:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnZ0Y-0006jb-TM for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 16:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YnZ0Y-0001sD-7O for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 16:55: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 20:55: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.14303408767167 (code B ref 20441); Wed, 29 Apr 2015 20:55:02 +0000 Original-Received: (at 20441) by debbugs.gnu.org; 29 Apr 2015 20:54:36 +0000 Original-Received: from localhost ([127.0.0.1]:56746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnZ07-0001rW-O6 for submit@debbugs.gnu.org; Wed, 29 Apr 2015 16:54:36 -0400 Original-Received: from mail-yh0-f45.google.com ([209.85.213.45]:33410) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YnZ05-0001rK-Mh for 20441@debbugs.gnu.org; Wed, 29 Apr 2015 16:54:34 -0400 Original-Received: by yhcb70 with SMTP id b70so8549036yhc.0 for <20441@debbugs.gnu.org>; Wed, 29 Apr 2015 13:54:28 -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=gIxUi3GTYkHirv5j8226Y67XCKuK6nbfYaJ9wc0CidY=; b=qOLgYYjphmzjdF+CDZyfoHyIbsfRqH3AZKZ5lteYbooU6WTatppWsJVl1umD9Y681H JmZpCajFu83Bh4+UlYGEDfWMlZTDXctMxHTDroh98M+YBpySOPDVpa047ddqi9NUPV1s s+Ci9Ce3gXFyasiIlVv31e8GOuO5aC6IlPz4h9m93f+MpDhx6ejRChihSID1wYrS5swA 0ekndFliFeejmQW377bTG+LreXn984WxpWe8pX30Qx6NYl6ZNLuPG5nf4qnLY674Gbip eT6DZFo5m9dlCmVcwoDv8ph7f4r8SETzyyE1RdhTmN4d5QltEYSRr+qz9MQugdYpZaT5 YwMw== X-Received: by 10.170.46.203 with SMTP id 194mr894067yko.51.1430340868030; Wed, 29 Apr 2015 13:54:28 -0700 (PDT) In-Reply-To: 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:102262 Archived-At: --001a1137971258c7e80514e32f8c Content-Type: text/plain; charset=ISO-8859-1 When I eval (file-notify-add-watch "/tmp/foo" '(change attribute-change) 'my-notify-callback) I see something like 38390812 (#o222346034, #x249cc1c) in the *Messages* buffer and even the `file-notify-descriptors` hash is updated. But the callback fn is never executed. On Wed, Apr 29, 2015 at 3:47 PM Kaushal wrote: > 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. >> > --001a1137971258c7e80514e32f8c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
When I eval=A0

(file-notify-add-watch=A0"/tmp/foo" '(change attribute-change) 'my-notify-ca= llback)

I see something like

<= /div>
38390812 (#o222346034, #x249cc1c)

in= the *Messages* buffer and even the `file-notify-descriptors` hash is updat= ed.

But the callback fn is never executed.

On Wed, Apr 29, 2015 at 3:47 PM Kaushal = <kaushal.modi@gmail.com>= ; wrote:
Thanks for the = pointer Michael.

I am puzzled. Of course filenotify does not work fo= r me (it used to work; I wrote this elisp snippet that used this feature:= =A0= http://emacs.stackexchange.com/a/2566/115).

The valu= e of `file-notify--library` is `'gfilenotify` but the feature doesn'= ;t work for me. Any pointers?

The test code evalli= ng 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 <michael.albinus@gmx.de&g= t; 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&#= 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.
--001a1137971258c7e80514e32f8c--