summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2015-01-13 15:58:50 +0100
committerMichael Albinus <michael.albinus@gmx.de>2015-01-13 15:58:50 +0100
commit1e5902ac64456fe9a68e3c9f92604df6e3128c5d (patch)
tree7041e158d16ec6785e0e4a070ee8684d8436545d
parentb1ea16072864ed532377c6ea43198a8604890715 (diff)
downloademacs-1e5902ac64456fe9a68e3c9f92604df6e3128c5d.tar.gz
* filenotify.el (file-notify--descriptor): Do not cons for remote files.
-rw-r--r--lisp/filenotify.el2
1 files changed, 1 insertions, 1 deletions
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))