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

Hello again Michael,

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

&#10140;  bin git:(master) otool -L emacs-25.0.50
emacs-25.0.50:
	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
(compatibility version 45.0.0, current version 1344.72.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
	/usr/local/lib/librsvg-2.2.dylib (compatibility version 39.0.0, current
version 39.3.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1213.0.0)
	/usr/local/lib/libgio-2.0.0.dylib (compatibility version 4401.0.0,
current version 4401.0.0)
	/usr/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 3001.0.0,
current version 3001.8.0)
	/usr/local/lib/libgobject-2.0.0.dylib (compatibility version 4401.0.0,
current version 4401.0.0)
	/usr/local/lib/libglib-2.0.0.dylib (compatibility version 4401.0.0,
current version 4401.0.0)
	/usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0,
current version 10.3.0)
	/usr/local/lib/libcairo.2.dylib (compatibility version 11403.0.0, current
version 11403.2.0)
	/usr/local/lib/libMagickWand-6.Q16.2.dylib (compatibility version 3.0.0,
current version 3.0.0)
	/usr/local/lib/libMagickCore-6.Q16.2.dylib (compatibility version 3.0.0,
current version 3.0.0)
	/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version
10.9.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current
version 5.4.0)
	/usr/local/lib/libgnutls.28.dylib (compatibility version 70.0.0, current
version 70.6.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 1152.0.0)
	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
(compatibility version 64.0.0, current version 600.0.0)
	/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
(compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
(compatibility version 300.0.0, current version 1152.14.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
228.0.0)

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.

Does that help any?

Christopher Carpenter


> "Christopher Carpenter" <mordocai@mordocai.net> writes:
>
> Hi Christopher,
>
>> Unless this is actually a gfilenotify <-> emacs problem(rather than a
>> gfilenotify on mac problem) I'd consider this solved/not a bug. Sorry
>> for
>> wasting time!
>
> Like Eli, I cannot test on a Mac. If you don't mind, I would like to
> misuse you for further investigations.
>
> Even if it is a glib-on-the-mac problem, I would prefer that file
> notifications are not enabled then when building Emacs. This must be
> determined robustly.
>
> glib on OSX (BSD, in fact) uses either kqueue, or it polls for file
> notifications. Maybe you could check, whether libkqueue is linked to
> Emacs.
>
> Furthermore, it might be worth to set traces before running the
> tests. Some thing like this:
>
> (require 'filenotify)
> (require 'trace)
> (dolist (elt (all-completions "file-notify-" obarray 'functionp))
>   (trace-function-background (intern elt)))
>
> You might observe the buffer *trace-output*, whether file notifications
> events arrive.
>
>> Thanks,
>> Christopher Carpenter
>
> Best regards, Michael.
>
>







  reply	other threads:[~2015-04-10  3:22 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 [this message]
2015-04-10 14:45             ` Michael Albinus
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=a4d884dfe5a0c109589e06ad2c5225e2.squirrel@mail.mordocai.net \
    --to=mordocai@mordocai.net \
    --cc=20280@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 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).