From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Christopher Carpenter" Newsgroups: gmane.emacs.bugs Subject: bug#20280: 25.0.50; Auto revert mode appears to be non-functional Date: Thu, 9 Apr 2015 22:22:56 -0500 Message-ID: References: <83oamyfnho.fsf@gnu.org> <76acc087b52a5b05d6baa0c2836219d8.squirrel@mail.mordocai.net> <87zj6ixqcs.fsf@gmx.de> <87h9spy4e3.fsf@gmx.de> Reply-To: mordocai@mordocai.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1428636263 6268 80.91.229.3 (10 Apr 2015 03:24:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2015 03:24:23 +0000 (UTC) Cc: Christopher Carpenter , 20280@debbugs.gnu.org To: "Michael Albinus" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 10 05:24:14 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 1YgPYA-0004aE-Tk for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Apr 2015 05:24:11 +0200 Original-Received: from localhost ([::1]:37333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgPYA-0001cG-00 for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Apr 2015 23:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgPY5-0001c7-Uo for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 23:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgPY2-0004Pp-Lt for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 23:24:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgPY2-0004Pl-ES for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 23:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YgPY2-0006ec-14 for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2015 23:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Christopher Carpenter" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Apr 2015 03:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20280 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20280-submit@debbugs.gnu.org id=B20280.142863618625505 (code B ref 20280); Fri, 10 Apr 2015 03:24:01 +0000 Original-Received: (at 20280) by debbugs.gnu.org; 10 Apr 2015 03:23:06 +0000 Original-Received: from localhost ([127.0.0.1]:51649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgPX7-0006dI-Bl for submit@debbugs.gnu.org; Thu, 09 Apr 2015 23:23:05 -0400 Original-Received: from mail.mordocai.net ([173.230.133.5]:44635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgPX4-0006cj-QP for 20280@debbugs.gnu.org; Thu, 09 Apr 2015 23:23:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mordocai.net; s=key; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Reply-To:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID; bh=iBEYXl718LgmCHO5Bdzk07puNYexxqaFJ++0cVkAI3A=; b=ORC3cOCWmNlRegVJvv8OxhZpxKZ/Spysz+nJdU2G1qrrpTB8zUDcwEMiVOipqltOfYxDSfOYzNFBADxi4ckWHh3CehavzQ5K+Wv8FbkjN0Wb6WhCYBavIJxTwpPI9+g3oJTi+i4CQ6fzDJQCX2LQFidMGJLdbSR9bzApJ0fPvpk=; Original-Received: from localhost ([127.0.0.1] helo=mail.mordocai.net) by mail.mordocai.net with esmtp (Exim 4.80) (envelope-from ) id 1YgPWy-0005Hl-Hy; Thu, 09 Apr 2015 22:22:57 -0500 Original-Received: from 97.88.111.154 (SquirrelMail authenticated user mordocai) by mail.mordocai.net with HTTP; Thu, 9 Apr 2015 22:22:56 -0500 In-Reply-To: <87h9spy4e3.fsf@gmx.de> User-Agent: SquirrelMail/1.4.23 [SVN] X-Priority: 3 (Normal) Importance: Normal X-Spam_score: -0.2 X-Spam_score_int: -1 X-Spam_bar: / X-Spam_report: Spam detection software, running on the system "mail.mordocai.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hello again Michael, It doesn't look like libkqueue is linked to my emacs executable to me. ➜ 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 ver X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: mordocai@mordocai.net X-SA-Exim-Scanned: No (on mail.mordocai.net); SAEximRunCond expanded to false 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:101358 Archived-At: Hello again Michael, It doesn't look like libkqueue is linked to my emacs executable to me. ➜ 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" 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. > >