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

This commit is contained in:
Michael Albinus 2015-01-13 15:58:50 +01:00
parent b1ea160728
commit 1e5902ac64

View file

@ -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)
descriptor))