emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using glib's g_file_monitor_file and g_file_monitor_directory


From: Michael Albinus
Subject: Re: Using glib's g_file_monitor_file and g_file_monitor_directory
Date: Wed, 05 Jun 2013 15:25:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> I tried the new monitor and it made Emacs freeze.
> I was running "emacs -nw", which I think may help explain the problem.
> Fedora 17, x86-64.  Here's what I ran:
>
> (gfile-add-watch "/tmp/foo" '() (lambda (ev) (message "%s" ev)))
>
> Here are the diagnostics that were blatted
> onto my screen before Emacs froze:
>
> (process:11082): GLib-GObject-CRITICAL **: gtype.c:2722: You forgot to
> call g_type_init()

I've committed a patch to the trunk which prevents this crash. However,
if you call "emacs -nw", you won't get any notification. I suppose we
need an generalized g_main_loop integration, synchronized with the code
in gtkutil.c.

Likely, we must move this code out of gtkutil.c and gfilenotify.c. Jan?

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]