From e56af099fb41652e273f739cb39c39255fc70fae Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 5 Jan 2019 19:39:07 +0100 Subject: [PATCH] * lisp/filenotify.el (file-notify-callback): Adapt check. --- lisp/filenotify.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))))))) -- 2.39.5