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: Fri, 01 May 2015 14:11:22 +0000 Message-ID: References: <87wq0u4tye.fsf@gmx.de> <87r3r2objb.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113a0528803bc9051505c9ff X-Trace: ger.gmane.org 1430489546 23434 80.91.229.3 (1 May 2015 14:12:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 14:12:26 +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 Fri May 01 16:12:13 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 1YoBfo-0005nC-E5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 May 2015 16:12:12 +0200 Original-Received: from localhost ([::1]:54188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBfn-00089U-OX for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 May 2015 10:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBfj-00084w-CY for bug-gnu-emacs@gnu.org; Fri, 01 May 2015 10:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoBfe-0000HS-M0 for bug-gnu-emacs@gnu.org; Fri, 01 May 2015 10:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBfe-0000HI-Gi for bug-gnu-emacs@gnu.org; Fri, 01 May 2015 10:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YoBfe-0004Js-6x for bug-gnu-emacs@gnu.org; Fri, 01 May 2015 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 May 2015 14:12: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.143048949216567 (code B ref 20441); Fri, 01 May 2015 14:12:02 +0000 Original-Received: (at 20441) by debbugs.gnu.org; 1 May 2015 14:11:32 +0000 Original-Received: from localhost ([127.0.0.1]:58797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoBf9-0004J8-6G for submit@debbugs.gnu.org; Fri, 01 May 2015 10:11:32 -0400 Original-Received: from mail-yh0-f53.google.com ([209.85.213.53]:34028) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YoBf6-0004Iv-Ig for 20441@debbugs.gnu.org; Fri, 01 May 2015 10:11:29 -0400 Original-Received: by yhw29 with SMTP id 29so18111494yhw.1 for <20441@debbugs.gnu.org>; Fri, 01 May 2015 07:11:23 -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=MNa502NJTC+mJvMNho7MGgWCcia+5oyE1STtW7hd1Og=; b=YNSNsGsSngSLitxDTReqx+RFEf2fz7GFDhe5Z1CizA/oRVmJEVSm3jKAjF5IpOQ0bB t/sViLoqole3IRlr6Nhwxim+veqPw3rStzPyGg22aR7pS54G5Xedungl8tUZcrGMMWl9 B4FqPmHb9e3oiQ4wh+nlD7Bc/mArPLjzubriCvDWg6bsaOSz7tqI1HE/fQtGfOYuA0uN uWwYsH4XAEbOZEk6x8K+TjtkUJc661t8yd0L1ji06pWBxnS1F+ZCgWJpYLQvHFw4Dnco 0jg9dX23OqVFaYsiAxf6vQAGXfdFZu8VBKNA6gtGDckQUwyXCerQoLP5YMfG9wh0XYLy 6aSg== X-Received: by 10.170.89.5 with SMTP id g5mr7857358yka.30.1430489483195; Fri, 01 May 2015 07:11:23 -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:102327 Archived-At: --001a113a0528803bc9051505c9ff Content-Type: text/plain; charset=ISO-8859-1 It got fixed but I can't explain why this fixed it. I usually work on a headless machine, and am always working on a VNC server. I randomly just killed the existing server and started a new one on the same machine (nothing rebuilt since that last email) and now gfilenotify started working again! On Wed, Apr 29, 2015 at 8:39 PM Kaushal wrote: > I just rebuilt emacs-24.4 tag from git while glib 2.40.00 is installed. > But the same results; gfilenotify doesn't work this time. The last time it > worked, it was the same RHEL 5.10, glib 2.40.00 and emacs 24.4. Here is the > config.h (renamed) created for the 24.4 build: > https://dl.dropboxusercontent.com/u/10985/config-emacs-24.4.h > > Is there anything else that gfilenotify depends on? Can I test something > from the terminal to verify glib installation that would make gfilenotify > work? > > Thanks! > > On Wed, Apr 29, 2015 at 8:08 PM Kaushal wrote: > >> Thanks. glib looks like the culprit. >> >> When filenotify used to work, I had glib 2.40.00 installed on RHEL 5.10. >> >> Then I upgraded to glib 2.44.00 last week (also rebuilt emacs after that) >> in efforts to fix a frame issue I am still facing ( >> http://emacs.stackexchange.com/q/10745/115 ). The upgrade didn't fix >> that issue and it seemed that it didn't break anything so I stayed at that >> version. >> >> But looks that that broke the gfilenotify functionality. >> >> Now, I did make uninstall on glib 2.44.00 and reinstalled glib 2.40.00 >> and rebuilt latest emacs from master. But that did not fix the gfilenotify >> issue. I don't know what else I can look into. >> >> Here is the requested src/config.h after reverting back to glib 2.40.00 >> and rebuilding emacs from master: >> https://dl.dropboxusercontent.com/u/10985/config.h >> >> Thanks for the help! >> >> On Wed, Apr 29, 2015 at 5:43 PM Michael Albinus >> wrote: >> >>> Kaushal writes: >>> >>> > 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. >>> >>> Which Linux distribution are you using? Which glib version? >>> >>> What are the configure options of your Emacs build? Pls show >>> src/config.h. >>> >>> Best regards, Michael. >>> >> --001a113a0528803bc9051505c9ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It got fixed but I can't explain why this fixed it.
I usually work on a headless machine, and am always working on a = VNC server.
I randomly just killed the existing server and starte= d a new one on the same machine (nothing rebuilt since that last email) and= now gfilenotify started working again!

On Wed, Apr 29, 2015 at 8:39 PM Kaushal <kaushal.modi@gmail.com> wrote:
I just rebuilt emacs-24.4 tag from git whil= e glib 2.40.00 is installed. But the same results; gfilenotify doesn't = work this time. The last time it worked, it was the same RHEL 5.10, glib 2.= 40.00 and emacs 24.4. Here is the config.h (renamed) created for the 24.4 b= uild: https://dl.dropboxusercontent.com/u/10985/config-ema= cs-24.4.h

Is there anything else that gfilenotify de= pends on? Can I test something from the terminal to verify glib installatio= n that would make gfilenotify work?

Thanks!=A0
=

On Wed, Apr 29, 2015 at 8:08 PM = Kaushal <kau= shal.modi@gmail.com> wrote:
Thanks. glib looks like the culprit.

When filenotify used= to work, I had glib 2.40.00 installed on RHEL 5.10.

The= n I upgraded to glib 2.44.00 last week (also rebuilt emacs after that) in e= fforts to fix a frame issue I am still facing (=A0http://emacs.stackexchange.= com/q/10745/115 ). The upgrade didn't fix that issue and it seemed = that it didn't break anything so I stayed at that version.
But looks that that broke the gfilenotify functionality.
=

Now, I did make uninstall on glib 2.44.00 and reinstall= ed glib 2.40.00 and rebuilt latest emacs from master. But that did not fix = the gfilenotify issue. I don't know what else I can look into.

Here is the requested src/config.h after reverting back to= glib 2.40.00 and rebuilding emacs from master:=A0https://dl.dropboxu= sercontent.com/u/10985/config.h

Thanks for the= help!

On Wed, Apr 29, 2015 at 5:= 43 PM Michael Albinus <michael.albinus@gmx.de> wrote:
Kaushal <kaushal.modi@gmail.com> writes:

> When I eval
>
> (file-notify-add-watch
> "/tmp/foo" '(change attribute-change) 'my-notify-cal= lback)
>
> 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.

Which Linux distribution are you using? Which glib version?

What are the configure options of your Emacs build? Pls show src/config.h.<= br>
Best regards, Michael.
--001a113a0528803bc9051505c9ff--