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: Paul Eggert
Subject: Re: Using glib's g_file_monitor_file and g_file_monitor_directory
Date: Thu, 06 Jun 2013 00:10:58 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

On 06/04/2013 06:23 PM, Stefan Monnier wrote:
> If you need something like that, then create a new type for it (either
> a new lisp_misc or a new pseudo vector).

I installed a more-conservative change instead as trunk bzr 112869:
it causes Emacs to check that a file monitor is indeed a Lisp integer
after conversion, and causes gfile-add-watch to throw an exception
otherwise.  (Another possibility might be to emacs_abort () on this
sort of failure.)

If we run into a platform where glib file monitors aren't valid Lisp
integers, we can create a new Lisp_Misc etc. then, but perhaps we'll
get lucky and not need to do it.



reply via email to

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