diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-01-25 11:39:47 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-01-25 11:39:47 +0200 |
commit | d8cd7742b31178d670a677debb851b961c0464da (patch) | |
tree | c77c00b353fe5dece961f8ea89807cf5adf448e2 /src/w32notify.c | |
parent | 266fee4f1e46807701f5d62cff7c33e04e4014f0 (diff) |
Update doc string of w32notify-add-watch per discussions in bug #13540.
src/w32notify.c (Fw32notify_add_watch): Doc fix.
Diffstat (limited to 'src/w32notify.c')
-rw-r--r-- | src/w32notify.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/w32notify.c b/src/w32notify.c index d78e55f43e..1bcaa79456 100644 --- a/src/w32notify.c +++ b/src/w32notify.c @@ -442,8 +442,8 @@ DEFUN ("w32notify-add-watch", Fw32notify_add_watch, This arranges for filesystem events pertaining to FILE to be reported to Emacs. Use `w32notify-rm-watch' to cancel the watch. -Value is a descriptor for the added watch, or nil if the file -cannot be watched. +Value is a descriptor for the added watch. If the file cannot be +watched for some reason, this function signals a `file-error' error. FILTER is a list of conditions for reporting an event. It can include the following symbols: @@ -476,7 +476,13 @@ following: 'renamed-from' -- a file was renamed whose old name was FILE 'renamed-to' -- a file was renamed and its new name is FILE -FILE is the name of the file whose event is being reported. */) +FILE is the name of the file whose event is being reported. + +Note that some networked filesystems, such as Samba-mounted Unix +volumes, might not send notifications about file changes. In these +cases, this function will return a valid descriptor, but notifications +will never come in. Volumes shared from remote Windows machines do +generate notifications correctly, though. */) (Lisp_Object file, Lisp_Object filter, Lisp_Object callback) { Lisp_Object encoded_file, watch_object, watch_descriptor; |