Commit 1e5902ac authored by Michael Albinus's avatar Michael Albinus
Browse files

* filenotify.el (file-notify--descriptor): Do not cons for remote files.

parent b1ea1607
......@@ -96,7 +96,7 @@ This is available in case a file has been moved."
"Return the descriptor to be used in `file-notify-*-watch'.
For `gfilenotify' and `w32notify' it is the same descriptor as
used in the low-level file notification package."
(if (eq file-notify--library 'inotify)
(if (and (natnump descriptor) (eq file-notify--library 'inotify))
(cons descriptor file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment