Function: file-notify--callback-w32notify

file-notify--callback-w32notify is a byte-compiled function defined in filenotify.el.gz.

Signature

(file-notify--callback-w32notify (DESC ACTIONS FILE &optional FILE1-OR-COOKIE))

Documentation

Notification callback for w32notify.

Source Code

;; Defined in /usr/src/emacs/lisp/filenotify.el.gz
(cl-defun file-notify--callback-w32notify ((desc actions file
                                            &optional file1-or-cookie))
  "Notification callback for w32notify."
  (let ((action (pcase actions
                 ('added 'created)
                 ('modified 'changed)
                 ('removed 'deleted)
                 ('renamed-from 'renamed-from)
                 ('renamed-to 'renamed-to))))
    (when action
      (file-notify--handle-event desc (list action) file file1-or-cookie))))