]> git.eshelyaron.com Git - emacs.git/commit
Refactor the callback half of filenotify.el
authorMattias Engdegård <mattiase@acm.org>
Sun, 19 May 2019 09:45:38 +0000 (11:45 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 24 Jul 2019 09:53:47 +0000 (11:53 +0200)
commit5a80a9ded16b835ce42c5f4d2e3a5e711f7726cf
tree041d68075d5dd15906593dc98898de7704a8f3c1
parent3a764848650365a9794839c5e98fa74bceb76c47
Refactor the callback half of filenotify.el

Split callback code into backend-specific and general parts.  Refactor
pending event, which is always a rename, to include relevant
information only.  General clean-up.

* lisp/filenotify.el (file-notify--pending-event): Rename.
(file-notify--event-watched-file, file-notify--event-file-name)
(file-notify--event-file1-name, file-notify--event-cookie): Remove.
(file-notify--rename, file-notify--expand-file-name)
(file-notify--callback-inotify, file-notify--callback-kqueue)
(file-notify--callback-w32notify, file-notify--callback-gfilenotify)
(file-notify--call-handler, file-notify--handle-event): New.
(file-notify-callback): Split general parts into
file-notify--call-handler and file-notify--handle-event.
(file-notify--add-watch-inotify, file-notify--add-watch-kqueue)
(file-notify--add-watch-w32notify)
(file-notify--add-watch-gfilenotify): Use new callbacks.
lisp/filenotify.el