(string-equal
(file-notify--watch-filename watch)
(file-name-nondirectory file1)))))
- (message
- "file-notify-callback %S %S %S %S %S %S %S"
- desc action file file1 watch
- (file-notify--event-watched-file event)
- (file-notify--watch-directory watch))
+ ;;(message
+ ;;"file-notify-callback %S %S %S %S %S %S %S"
+ ;;desc action file file1 watch
+ ;;(file-notify--event-watched-file event)
+ ;;(file-notify--watch-directory watch))
(funcall (file-notify--watch-callback watch)
(if file1
`(,desc ,action ,file ,file1)
descriptor))
t))))
-
;; TODO:
;; * Watching a file in an already watched directory.
'(created changed deleted stopped))
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- ((and (string-equal (file-notify--test-library) "inotify")
+ ((and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
'(created changed deleted))
(t '(created changed deleted deleted stopped)))
'(created changed created changed deleted stopped))
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- ((and (string-equal (file-notify--test-library) "inotify")
+ ((and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
'(created changed created changed deleted deleted))
(t '(created changed created changed
'(created changed renamed deleted stopped))
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- ((and (string-equal (file-notify--test-library) "inotify")
+ ((and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
'(created changed renamed deleted))
(t '(created changed renamed deleted deleted stopped)))
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- (unless (and (string-equal (file-notify--test-library) "inotify")
+ (unless (and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
(unwind-protect
(let ((file-notify--test-tmpdir
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- (unless (and (string-equal (file-notify--test-library) "inotify")
+ (unless (and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
(unwind-protect
(progn
(delete-file file)))
(delete-directory file-notify--test-tmpfile)
(if (or (string-equal (file-notify--test-library) "w32notify")
- (and (string-equal (file-notify--test-library) "inotify")
+ (and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI")))
(file-notify--rm-descriptor file-notify--test-desc))
((string-equal (file-notify--test-library) "w32notify") '())
;; inotify on emba does not detect `deleted' and
;; `stopped' events of the directory.
- ((and (string-equal (file-notify--test-library) "inotify")
+ ((and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
'())
(t '(deleted stopped))))))
(delete-directory file-notify--test-tmpfile 'recursive))
- (unless (and (string-equal (file-notify--test-library) "inotify")
+ (unless (and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI"))
(should-not (file-notify-valid-p file-notify--test-desc1))
(should-not (file-notify-valid-p file-notify--test-desc2)))
(when (or (string-equal (file-notify--test-library) "w32notify")
- (and (string-equal (file-notify--test-library) "inotify")
+ (and (string-match "inotify" (file-notify--test-library))
(getenv "EMACS_EMBA_CI")))
(file-notify--rm-descriptor file-notify--test-desc1)
(file-notify--rm-descriptor file-notify--test-desc2))