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: Thu, 30 Apr 2015 00:08:16 +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=001a113a789a7f031f0514e5e426 X-Trace: ger.gmane.org 1430352562 23343 80.91.229.3 (30 Apr 2015 00:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2015 00:09:22 +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 Thu Apr 30 02:09:12 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 1Ync2Q-0008Ol-ME for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2015 02:09:10 +0200 Original-Received: from localhost ([::1]:41475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ync2P-0002yh-VW for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 20:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ync2L-0002xl-TX for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 20:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ync2I-0008IR-Li for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 20:09:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ync2I-0008IE-Hd for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 20:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ync2H-0007vD-Se for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2015 20:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Apr 2015 00:09:01 +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.143035250830404 (code B ref 20441); Thu, 30 Apr 2015 00:09:01 +0000 Original-Received: (at 20441) by debbugs.gnu.org; 30 Apr 2015 00:08:28 +0000 Original-Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ync1i-0007uG-8D for submit@debbugs.gnu.org; Wed, 29 Apr 2015 20:08:27 -0400 Original-Received: from mail-yk0-f180.google.com ([209.85.160.180]:34190) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ync1e-0007u2-OR for 20441@debbugs.gnu.org; Wed, 29 Apr 2015 20:08:24 -0400 Original-Received: by ykft189 with SMTP id t189so9869912ykf.1 for <20441@debbugs.gnu.org>; Wed, 29 Apr 2015 17:08:17 -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=5zWJGBkwKnlmuRtLd7jgY8xvsh61WjM9hzj/WtFoAtc=; b=tbJMEzr0TYZNDfEA7c7Ix+eZTp4x2yj+XWNakdUjfgBolpeBGCzJ+55lPWHxath0j5 zx1ai7pSgWwqTQLN04o/x/p4fsfcsU6Z7EY97gHHuIJlAkZDRjgygk5QFiHP77ECKJnQ yS7MQifm0+65dUpetgDpIIjn2oIjdDZQ+3vnU5THvnCGl6MMEnQsI4uHlX58EJf7nlpo ZmrmEPN679qFTeKUdiUAwGmrTdlKkDQ/U2jSk/MjlJSfNhGbzzIjzxr8ONgVznOIDP5J eARGcHDp7ODgg1CZCjCGze4kpFepn71yPvHPMYNF7i3xVPM5dQ0oZYNhKcTpPyMWhX3N lVWg== X-Received: by 10.170.83.5 with SMTP id z5mr1530814ykz.117.1430352497146; Wed, 29 Apr 2015 17:08:17 -0700 (PDT) In-Reply-To: <87r3r2objb.fsf@gmx.de> 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:102270 Archived-At: --001a113a789a7f031f0514e5e426 Content-Type: text/plain; charset=ISO-8859-1 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. > --001a113a789a7f031f0514e5e426 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks. glib looks like the culprit.

When filenotif= y 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 (=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 reinstalled glib 2.40= .00 and rebuilt latest emacs from master. But that did not fix the gfilenot= ify 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.0= 0 and rebuilding emacs from master:=A0https://dl.dropboxusercontent.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.
--001a113a789a7f031f0514e5e426--