Function: inotify-rm-watch

inotify-rm-watch is a function defined in inotify.c.

Signature

(inotify-rm-watch WATCH-DESCRIPTOR)

Documentation

Remove an existing WATCH-DESCRIPTOR.

WATCH-DESCRIPTOR should be an object returned by inotify-add-watch.

See inotify_rm_watch(2) for more information.

Source Code

// Defined in /usr/src/emacs/src/inotify.c
{

  Lisp_Object descriptor, id;

  if (! valid_watch_descriptor (watch_descriptor))
    report_file_notify_error ("Invalid descriptor ", watch_descriptor);

  descriptor = XCAR (watch_descriptor);
  id = XCDR (watch_descriptor);
  remove_watch (descriptor, id);

  return Qt;
}