unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Christopher Carpenter" <mordocai@mordocai.net>
Cc: 20280@debbugs.gnu.org
Subject: bug#20280: 25.0.50; Auto revert mode appears to be non-functional
Date: Fri, 10 Apr 2015 16:45:27 +0200	[thread overview]
Message-ID: <87r3rsoxdk.fsf@gmx.de> (raw)
In-Reply-To: <a4d884dfe5a0c109589e06ad2c5225e2.squirrel@mail.mordocai.net> (Christopher Carpenter's message of "Thu, 9 Apr 2015 22:22:56 -0500")

"Christopher Carpenter" <mordocai@mordocai.net> writes:

> Hello again Michael,

Hi Christopher,

> It doesn't look like libkqueue is linked to my emacs executable to me.

Yes. But glib is linked.

> I ran the code you gave there, and did multiple writes to the file. The
> following is the only text that appeared in *trace-output* and I believe
> it appeared when I activated auto-revert, not when I wrote to the file.
>
> ======================================================================
> 1 -> (file-notify-add-watch "/Users/ccarpenter/test.txt" (change
> attribute-chan\
> ge) auto-revert-notify-handler)
> | 2 -> (file-notify--descriptor 1080241180 "test.txt")
> | 2 <- file-notify--descriptor: 1080241180
> 1 <- file-notify-add-watch: 1080241180
>
> From my amateur view it looks like we are not getting any notifications.

Yes.

> Does that help any?

Yes. When glib is not linked with a native file notification library
like inotify or kqueue, it should poll in order to find file changes. It
doesn't seem to do that in your case.

I will dig deeper into this, trying to find out what makes glib to
refuse to poll. Maybe we have an error bringing glib into the main loop,
or there is something we miss to configure for glib, or it is simply a
glib error.

It might take some days, until I'll be back.

> Christopher Carpenter

Best regards, Michael.





  reply	other threads:[~2015-04-10 14:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 17:20 bug#20280: 25.0.50; Auto revert mode appears to be non-functional Christopher Carpenter
2015-04-08 19:06 ` Eli Zaretskii
2015-04-08 19:54   ` Christopher Carpenter
2015-04-08 21:27     ` Michael Albinus
2015-04-08 21:47       ` Christopher Carpenter
2015-04-09 10:36         ` Michael Albinus
2015-04-10  3:22           ` Christopher Carpenter
2015-04-10 14:45             ` Michael Albinus [this message]
2015-04-19 14:28               ` Michael Albinus
2015-08-15 11:17                 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3rsoxdk.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=20280@debbugs.gnu.org \
    --cc=mordocai@mordocai.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).