emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Added inotify support.


From: Rüdiger Sonderfeld
Subject: Re: [PATCH] Added inotify support.
Date: Tue, 11 Dec 2012 17:46:01 +0100
User-agent: KMail/4.9.2 (Linux/3.5.0-18-generic; KDE/4.9.2; x86_64; ; )

On Tuesday 11 December 2012 17:36:41 Michael Albinus wrote:
> I've fixed this in the trunk.

Thanks!

> There is still something not clear to me: An inotify event
> 
>   /tmp/123 CLOSE_WRITE,CLOSE
> 
> is transformed into an Emacs event
> 
>   (file-notify (1 (close-write) 0 nil) callback)
> 
> Is there a reason, that CLOSE (and also MOVE) are not handled in
> mask_to_aspects?

IN_CLOSE and IN_MOVE are not separate events but convenience macros.

>From the notify(7) manpage

    Two additional convenience macros are IN_MOVE, which equates to 
IN_MOVED_FROM|IN_MOVED_TO, and IN_CLOSE, which equates to IN_CLOSE_WRITE|
IN_CLOSE_NOWRITE.

Regards,
Rüdiger




reply via email to

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