Function: projectile--handle-watch-event
projectile--handle-watch-event is a byte-compiled function defined in
projectile.el.
Signature
(projectile--handle-watch-event PROJECT EVENT)
Documentation
Queue file-notify EVENT for PROJECT and start the debounce timer.
Events from descriptors no longer in projectile--project-watches are
dropped; in particular the stopped event that file-notify-rm-watch
itself generates on some backends can't re-trigger processing after the
project was unwatched.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--handle-watch-event (project event)
"Queue file-notify EVENT for PROJECT and start the debounce timer.
Events from descriptors no longer in `projectile--project-watches' are
dropped; in particular the `stopped' event that `file-notify-rm-watch'
itself generates on some backends can't re-trigger processing after the
project was unwatched."
(when (assoc (car event) (gethash project projectile--project-watches))
(push event (gethash project projectile--watch-pending-events))
(unless (gethash project projectile--watch-debounce-timers)
(puthash project
(run-with-timer projectile--watch-debounce-delay nil
#'projectile--process-watch-events project)
projectile--watch-debounce-timers))))