From: Michael Albinus Date: Tue, 13 Jan 2015 14:58:50 +0000 (+0100) Subject: * filenotify.el (file-notify--descriptor): Do not cons for remote files. X-Git-Tag: emacs-24.4.90~57 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e5902a;p=emacs.git * filenotify.el (file-notify--descriptor): Do not cons for remote files. --- diff --git a/lisp/filenotify.el b/lisp/filenotify.el index 18d93d16c87..c94f631dde8 100644 --- a/lisp/filenotify.el +++ b/lisp/filenotify.el @@ -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))