From: Kaushal <kaushal.modi@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 20441@debbugs.gnu.org
Subject: bug#20441: 24.5; Auto revert mode does not work
Date: Wed, 29 Apr 2015 20:54:26 +0000 [thread overview]
Message-ID: <CAFyQvY3zt0tOh_LkH_iKmtQ0BXJFGmSQs83_QfCrQGc8RvnG6w@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0RD6NgS2Ax4N7YsaNZOce5zoy6YBuTngRr1pER3JniRw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
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 <kaushal.modi@gmail.com> 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 <michael.albinus@gmx.de>
> 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.
>>
>
[-- Attachment #2: Type: text/html, Size: 2431 bytes --]
next prev parent reply other threads:[~2015-04-29 20:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 18:18 bug#20441: 24.5; Auto revert mode does not work Kaushal
2015-04-27 20:48 ` Kaushal
2015-04-27 21:01 ` Kaushal
2015-04-29 19:26 ` Michael Albinus
2015-04-29 19:47 ` Kaushal
2015-04-29 20:54 ` Kaushal [this message]
2015-04-29 21:43 ` Michael Albinus
2015-04-30 0:08 ` Kaushal
2015-04-30 0:39 ` Kaushal
2015-05-01 14:11 ` Kaushal
2015-05-01 16:33 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY3zt0tOh_LkH_iKmtQ0BXJFGmSQs83_QfCrQGc8RvnG6w@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=20441@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.