From: Michael Albinus Date: Sat, 5 Jan 2019 18:39:07 +0000 (+0100) Subject: * lisp/filenotify.el (file-notify-callback): Adapt check. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e56af099fb41652e273f739cb39c39255fc70fae;p=emacs.git * lisp/filenotify.el (file-notify-callback): Adapt check. --- diff --git a/lisp/filenotify.el b/lisp/filenotify.el index 8be7ffa4132..55f92dbbf3d 100644 --- a/lisp/filenotify.el +++ b/lisp/filenotify.el @@ -257,7 +257,7 @@ EVENT is the cadr of the event in `file-notify-handle-event' ;; Watched file or directory is concerned. (or (string-equal file (file-notify--event-watched-file event)) - (string-equal + (file-in-directory-p file (file-notify--watch-directory watch))))) (file-notify-rm-watch desc)))))))