X-Git-Url: http://repo.macrolet.net/gitweb/?p=cl-inotify.git;a=blobdiff_plain;f=README.md;fp=README.md;h=cd2a5aab55b7b48835470a024fa3d5cb693723e1;hp=c26fe8eff066a72973f84edd6b152a8b1ddb7548;hb=380091232fce38d01de465e91842a7961c709715;hpb=a198d2600d5fa9c99d85ac7c27cd9e82a4bea9ec diff --git a/README.md b/README.md index c26fe8e..cd2a5aa 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ Macros make keeping track easier, so the following example is straightforward: > (with-inotify (inotify T ("." :all-events)) - > (loop (format T "~{~A~%~}" (next-events inotify)))) + > (do-events (event inotify :blocking-p T) + > (format T "~A~%" event))) > => > #S(CL-INOTIFY::INOTIFY-EVENT :WD 1 :MASK (CREATE) :COOKIE 0 :NAME .zshist.LOCK) > #S(CL-INOTIFY::INOTIFY-EVENT :WD 1 :MASK (OPEN) :COOKIE 0 :NAME .zshist)