From 1e5902ac64456fe9a68e3c9f92604df6e3128c5d Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 13 Jan 2015 15:58:50 +0100 Subject: [PATCH] * filenotify.el (file-notify--descriptor): Do not cons for remote files. --- lisp/filenotify.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2