Function: file-notify--callback-gfilenotify

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

Signature

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

Documentation

Notification callback for gfilenotify.

Source Code

;; Defined in /usr/src/emacs/lisp/filenotify.el.gz
(cl-defun file-notify--callback-gfilenotify ((desc actions file
                                              &optional file1-or-cookie))
  "Notification callback for gfilenotify."
  (file-notify--handle-event
   desc
   (delq nil (mapcar (lambda (action)
                       (cond
                        ((memq action
                               '(created changed attribute-changed deleted))
                         action)
                        ((eq action 'moved) 'renamed)))
                     (if (consp actions) actions (list actions))))
   file file1-or-cookie))