diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-05-19 11:45:38 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-07-24 11:53:47 +0200 |
commit | 5a80a9ded16b835ce42c5f4d2e3a5e711f7726cf (patch) | |
tree | 041d68075d5dd15906593dc98898de7704a8f3c1 /lisp/edmacro.el | |
parent | 3a764848650365a9794839c5e98fa74bceb76c47 (diff) | |
download | emacs-5a80a9ded16b835ce42c5f4d2e3a5e711f7726cf.tar.gz emacs-5a80a9ded16b835ce42c5f4d2e3a5e711f7726cf.tar.bz2 emacs-5a80a9ded16b835ce42c5f4d2e3a5e711f7726cf.zip |
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.
Diffstat (limited to 'lisp/edmacro.el')
0 files changed, 0 insertions, 0 deletions