Function: file-notify-rm-all-watches
file-notify-rm-all-watches is an interactive and byte-compiled
function defined in filenotify.el.gz.
Signature
(file-notify-rm-all-watches)
Documentation
Remove all existing file notification watches from Emacs.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/filenotify.el.gz
(defun file-notify-rm-all-watches ()
"Remove all existing file notification watches from Emacs."
(interactive)
(maphash
(lambda (key _value)
(file-notify-rm-watch key))
file-notify-descriptors)
(setq file-notify-descriptors (clrhash file-notify-descriptors)))