]> git.eshelyaron.com Git - emacs.git/commit
File notifications report unmount events (bug#66381)
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 10 Oct 2023 17:51:22 +0000 (19:51 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 10 Oct 2023 17:51:22 +0000 (19:51 +0200)
commitf7185ca29b5086b1b0f32e64b7a5ba0bc21152c8
treed49081a3d1523e43beb3deea51eeec3a9562f13a
parent294567d171c9f1fbc961ea43c899269f46140570
File notifications report unmount events (bug#66381)

* doc/lispref/os.texi (File Notifications): Unmounting a watched
filesystem is reported now.

* etc/NEWS: File notifications report unmount events now.
Fix typos.

* lisp/filenotify.el (file-notify--callback-inotify)
(file-notify--add-watch-inotify): Handle `unmount'.
(file-notify--callback-kqueue, file-notify--add-watch-kqueue):
Handle `revoke'.
(file-notify--callback-gfilenotify): Handle `unmounted'.
(file-notify-callback): Handle `unmount' and `unmounted'.
(file-notify--add-watch-inotify):

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Handle `unmounted'.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Handle `unmount' and `unmounted'.

* src/gfilenotify.c (dir_monitor_callback): Handle Qunmounted.

* src/inotify.c (symbol_to_inotifymask): Handle IN_IGNORED and
IN_UNMOUNT.

* src/kqueue.c (kqueue_callback, Fkqueue_add_watch):
Handle NOTE_REVOKE.
(Fkqueue_add_watch): Adapt docstring.
(syms_of_kqueue): Declare `revoke.
doc/lispref/os.texi
etc/NEWS
lisp/filenotify.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-sh.el
src/gfilenotify.c
src/inotify.c
src/kqueue.c