* lisp/filenotify.el (file-notify-callback): Improve check for
`stopped' event.
;; Not, when a file is backed up.
(not (and (stringp file1) (backup-file-name-p file1)))
;; Watched file or directory is concerned.
- (string-equal
- file (file-notify--event-watched-file event))))
+ (or (string-equal
+ file (file-notify--event-watched-file event))
+ (string-equal
+ file (file-notify--watch-directory watch)))))
(file-notify-rm-watch desc)))))))
;; `kqueue', `gfilenotify' and `w32notify' return a unique descriptor