emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 1e5902a: * filenotify.el (file-notify--descriptor


From: Michael Albinus
Subject: [Emacs-diffs] emacs-24 1e5902a: * filenotify.el (file-notify--descriptor): Do not cons for remote files.
Date: Tue, 13 Jan 2015 14:59:33 +0000

branch: emacs-24
commit 1e5902ac64456fe9a68e3c9f92604df6e3128c5d
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    * filenotify.el (file-notify--descriptor): Do not cons for remote files.
---
 lisp/filenotify.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/filenotify.el b/lisp/filenotify.el
index 18d93d1..c94f631 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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]